Esempio n. 1
0
 public static Order CreateOrder(IEnumerable <Product> products)
 {
     return(new Order()
     {
         Date = new DateTime(2020, 1, 14),
         Remark = "Twee keer bellen.",
         OrderLines = new List <OrderLine>()
         {
             MockOrderLineService.CreateOrderLine(products, 0, 1, 1, 1),
             MockOrderLineService.CreateOrderLine(products, 0, 3, 4, 2),
             MockOrderLineService.CreateOrderLine(products, 0, 4, 2, 2)
         }
     });
 }
Esempio n. 2
0
 public OrderLine CreateOrderLine(int Id, int productId, int quantity, int fulfilled)
 {
     return(MockOrderLineService.CreateOrderLine(products, Id, productId, quantity, fulfilled));
 }