Example #1
0
        public OrderMock BaseOrder()
        {
            Value.Number     = Fake.GetOrderNumber(Key);
            Value.Status     = Fake.GetStatusOrder();
            Value.CreateDate = Fake.GetCreateDate();
            Value.Customer   = CustomerMock.Get(Key);

            return(this);
        }
        public OrderMock Default()
        {
            Value.Number     = Fake.GetOrderNumber(Key);
            Value.Status     = Fake.GetStatusOrder(Key);
            Value.CreateDate = Fake.GetCreateDate(Key);
            Value.Customer   = CustomerMock.Get(Key);

            Value.Items = new List <OrderItem>();
            Value.Items.Add(OrderItemMock.Get(Key));

            return(this);
        }