Use a library such as Bogus to generate synthetic but realistic data with a fixed seed, so runs are reproducible. Create it per test or per fixture against a real SQL Server in a Testcontainers container, and reset between tests (Respawn or a transaction rolled back at the end). Never copy production data into test environments: it moves personal information into less protected places, which is a Privacy Act and Notifiable Data Breaches risk. When you need production-like volumes, generate them, or use a masked copy approved by the data owner.
Checks synthetic data generation and Privacy Act awareness
Last updated 23 Nov 2026.