示例#1
0
 public static Order Simple()
 {
     return(new Order
     {
         BillingAddress = AddressMother.Simple(),
         ShippingAddress = AddressMother.Simple(),
         OrderStatusId = (int)OrderStatus.Ids.Received,
         User = UserMother.Simple()
     });
 }
示例#2
0
 public static User Simple()
 {
     return(new User
     {
         Address = AddressMother.Simple(),
         FirstName = GetRandom.FirstName(),
         LastName = GetRandom.LastName(),
         MiddleName = GetRandom.FirstName(),
         PasswordHash = GetRandom.String(),
         PhoneNumber = GetRandom.String(10, 10),
         UserName = GetRandom.String(1, 20)
     });
 }