private static DomainGenerator WithAddress(DomainGenerator generator) { return(generator .Component <Address>() .With <Address>(options => options.For(address => address.Street, new StringGenerator(1, 100))) .With <Address>(options => options.For(address => address.City, new StringGenerator(1, 100))) .With <Address>(options => options.For(address => address.Country, new StringGenerator(1, 100)))); }
private static DomainGenerator WithAddress(DomainGenerator generator) { return generator .Component<Address>() .With<Address>(options => options.For(address => address.Street, new StringGenerator(1, 100))) .With<Address>(options => options.For(address => address.City, new StringGenerator(1, 100))) .With<Address>(options => options.For(address => address.Country, new StringGenerator(1, 100))); }