public void GenerateDogs(int count)
{
int idx = 1000;
var dogFaker = new Faker<Dog>()
.RuleFor(d => d.Id, f => idx += 1)
.RuleFor(d => d.Name, f => f.Name.FirstName())
.RuleFor(d => d.Breed, f => f.PickRandom(new[] { "Beagle", "Bulldog", "Poodle", "German Shepherd" }))
.RuleFor(d => d.DateOfBirth, f => f.Date.Past(10).ToUniversalTime().ToDateTimeOffset())
.RuleFor(d => d.Color, f => f.Commerce.Color())
.RuleFor(d => d.IsNeutered, f => f.Random.Bool(0.7f))
.RuleFor(d => d.Notes, f => f.Lorem.Sentence())
.RuleFor(d => d.UserId, f => f.PickRandom(_users).Id)
_dogs = dogFaker.Generate(count);
}
public void GenerateDogs(int count)
{
int idx = 1000;
var dogFaker = new Faker<Dog>()
.RuleFor(d => d.Id, f => idx += 1)
.RuleFor(d => d.Name, f => f.Name.FirstName())
.RuleFor(d => d.Breed, f => f.PickRandom(new[] { "Beagle", "Bulldog", "Poodle", "German Shepherd" }))
.RuleFor(d => d.DateOfBirth, f => f.Date.Past(10).ToUniversalTime().ToDateTimeOffset())
.RuleFor(d => d.Color, f => f.Commerce.Color())
.RuleFor(d => d.IsNeutered, f => f.Random.Bool(0.7f))
.RuleFor(d => d.Notes, f => f.Lorem.Sentence())
.RuleFor(d => d.UserId, f => f.PickRandom(_users).Id)
_dogs = dogFaker.Generate(count);
}