Пример #1
0
 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))));
 }
Пример #2
0
 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)));
 }