API Reference
Every method on the DataForger builder, at a glance.
Builder methods
ForCountry(Country country)— selects the country provider and returns a builderWithSeed(int seed)— makes all following generation deterministicUse(Generator<T> generator)— registers a custom generatorCreate<T>()— generates one instance ofTCreate<T>(int count)— generates a collection ofT
Country enum
Country.PT,Country.ES,Country.FR,Country.DECountry.GB,Country.US,Country.BR
Example
csharp
var orders = DataForger
.ForCountry(Country.FR)
.WithSeed(42)
.Create<Order>(500);