private ShippingDto.CustomerDetail GetCustomerDetail() { var ret = MockHelper.CreateModel <ShippingDto.CustomerDetail>(Key); ret.Name = Fake.GetCustomerName(Key); ret.Address = Fake.GetAddress(Key); return(ret); }
private ReservationDto.MemberDetail GetMemberDetail(string key) { var ret = MockHelper.CreateModel <ReservationDto.MemberDetail>(key); ret.Name = Fake.GetMemberName(key); ret.DocumentId = FakeHelper.GetId(key).ToString(); return(ret); }
public BookMock Default() { Value = MockHelper.CreateModel <Book.Entities.Book>(Key); Value.AuthorName = Fake.GetAuthorName(Key); Value.Title = Fake.GetTitle(Key); Value.Language = Fake.GetLanguage(Key); return(this); }
private ReservationMessage.Item GetItem(string key) { var ret = MockHelper.CreateModel <ReservationMessage.Item>(key); ret.Name = Fake.GetTitle(key); ret.Number = Fake.GetCopyNumber(key); return(ret); }
private PurchaseMessage.Item GetItem(string key) { var ret = MockHelper.CreateModel <PurchaseMessage.Item>(key); ret.Name = Fake.GetOrderItemName(key); ret.Number = Fake.GetCopyNumber(key); ret.Price = Fake.GetPrice(key); ret.Quantity = Fake.GetQuantity(key); return(ret); }
private ReservationDto.LoanDetail GetLoanDetail(string key) { var ret = MockHelper.CreateModel <ReservationDto.LoanDetail>(key); ret.Title = Fake.GetTitle(key); ret.CopyNumber = Fake.GetCopyNumber(key); ret.DueDate = Fake.GetDueDate(key); ret.ReturnDate = null; return(ret); }
private ShippingDto.OrderItemDetail GetOrderItemDetail() { var ret = MockHelper.CreateModel <ShippingDto.OrderItemDetail>(Key); ret.Name = Fake.GetOrderItemName(Key); ret.Price = Fake.GetPrice(Key); ret.Quantity = Fake.GetQuantity(Key); ret.Total = Fake.GetTotal(Key); return(ret); }
public OrderMock ByPurchase() { Value.InsertedAt = DateTime.UtcNow; Value.Number = Fake.GetOrderNumber(Key); Value.Status = Fake.GetStatusOrder(Key); Value.CreateDate = DateTime.UtcNow; Value.Customer = MockHelper.CreateModel <Customer>(Key); Value.Customer.InsertedAt = DateTime.UtcNow; Value.Customer.Name = Fake.GetCustomerName(Key); Value.Customer.DocumentId = FakeHelper.GetId(Key).ToString(); Value.Items = new List <OrderItem>(); var item = OrderItemMock.Get(Key); item.InsertedAt = DateTime.UtcNow; Value.Items.Add(item); return(this); }
public ReservationMock ByReservation() { Value.InsertedAt = DateTime.UtcNow; Value.Number = Fake.GetReservationNumber(Key); Value.Status = Fake.GetStatusReservation(Key); Value.RequestDate = DateTime.UtcNow; Value.Member = MockHelper.CreateModel <Member>(Key); Value.Member.InsertedAt = DateTime.UtcNow; Value.Member.Name = Fake.GetMemberName(Key); Value.Member.DocumentId = FakeHelper.GetId(Key).ToString(); Value.Loans = new List <Loan>(); var loan = LoanMock.Get(Key); loan.InsertedAt = DateTime.UtcNow; Value.Loans.Add(loan); return(this); }