Bogus – testdata generator

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);

About erictummers

Working in a DevOps team is the best thing that happened to me. I like challenges and sharing the solutions with others. On my blog I’ll mostly post about my work, but expect an occasional home project, productivity tip and tooling review.
This entry was posted in Development, Tooling and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.