Fabricator makes it easy to generate sample data during development of your .NET application whenever real data isn't available, takes a long time to access or has regular breaking changes.
The focus of Fabricator is to allow generating test objects with as little
code as possible. To enable this, logical defaults are used for property types, and common properties such as names and addresses are populated based on
. In cases where this doesn't meet your needs, or you need to set up a complex hierarchy of objects, the setup options and
are designed to be flexible enough to account for any scenario.
- Download the Fabricator library or get the latest package using
- Read the guide to
- Learn about the different
rules available when generating values
- Learn about the
conventions used to simplify data generation
- Let me know if you find any
bugs, missing rules, or additional conventions I need to work on
- Let me know if you've found Fabricator useful
Currently the plan is to make Fabricator as stable and friendly as possible. While Fabricator is in beta the idea is to make the interface as fluent, discoverable and usable as possible, remove blockers preventing you from easily generating test data and adding
obvious capabilities which can be inferred without requiring additional user code at generation-time. If the library is found useful then, long-term, Fabricator may support more advanced scenarios such as generating sample data based on database schemas or