Пример #1
0
 public static Order Simple()
 {
     return(new Order
     {
         BillingAddress = AddressBuilder.Simple().Build(),
         ShippingAddress = AddressBuilder.Simple().Build(),
         OrderStatusId = (int)OrderStatus.Ids.Received,
         User = UserMother.Simple()
     });
 }
 public static User Simple()
 {
     return(new User
     {
         Address = AddressBuilder.Simple().Build(),
         FirstName = GetRandom.FirstName(),
         LastName = GetRandom.LastName(),
         MiddleName = GetRandom.FirstName(),
         PasswordHash = GetRandom.String(),
         PhoneNumber = GetRandom.String(10, 10),
         UserName = GetRandom.String(1, 20)
     });
 }