public void ConstructCustomersRepo( ) { var generator = new CustomersDataGenerator(new Repository()); var customers = generator.Customers; Assert.IsNotNull(customers); Assert.IsTrue(customers.ZipCodes.Any()); }
public void ConstructClientPeople( ) { var generator = new CustomersDataGenerator(new Repository()); var customers = generator.Customers; // generate 1000 customers (Persons) for (var i = 0; i < 1000; i++) { generator.Generate <Person>(); } Assert.AreEqual(1000, customers.People.Count()); }