예제 #1
0
 public DepartmentFaker(CustomerFaker customerFaker)
 {
     StrictMode(true);
     RuleFor(p => p.Id, f => f.IndexFaker);
     RuleFor(p => p.Name, f => f.Commerce.Department());
     //RuleFor(p => p.Customers, f => customerFaker.Generate(f.Random.Int(3, 10)));
     RuleFor(p => p.Customers, f => customerFaker.Generate(5));
 }
예제 #2
0
 public FakeCustomersService(CustomerFaker customerFaker)
 {
     customers = customerFaker.Generate(100);
 }