Photo by Steve Harvey on Unsplash
Creating testdata is not my favourite task. With bogus I can define the rules the data must adhere and generate as much data as I need.
The rules are setup with fluent syntax and reminds me of AutoMapper configuration. When you set the Randomizer the data can be generated inside your testcode and produce the same ‘random’ set of data every time.
Bogus.Randomizer.Seed = new Random(12345678);