Beispiel #1
0
 private VMTransitLocation(string name, DateTime date, VMAddress address, VMOrder order)
 {
     Name    = name;
     Date    = date;
     Address = address;
     Order   = order;
 }
Beispiel #2
0
 public static VMTransitLocation Create(string name, DateTime date, VMAddress address, VMOrder order)
 {
     return(new VMTransitLocation(name, date, address, order));
 }
Beispiel #3
0
 public static VMOrder Create(int orderId, List <VMOrderLine> orderLines, string customerId, decimal totalCost,
                              decimal shippingCost, VMAddress billingAddress, VMAddress shippingAddress, string promotionCode,
                              DateTime datePlaced)
 {
     return(new VMOrder(orderId, orderLines, customerId, totalCost, shippingCost, billingAddress, shippingAddress, promotionCode, datePlaced, null));
 }
Beispiel #4
0
 private VMOrder(int orderId, List <VMOrderLine> orderLines, string customerId, decimal totalCost, decimal shippingCost, VMAddress billingAddress, VMAddress shippingAddress, string promotionCode, DateTime datePlaced, List <VMTransitLocation> transitLocations)
 {
     Id               = orderId;
     OrderLines       = orderLines;
     CustomerId       = customerId;
     TotalCost        = totalCost;
     ShippingCost     = shippingCost;
     PromotionCode    = promotionCode;
     DatePlaced       = datePlaced;
     TransitLocations = transitLocations;
 }