Пример #1
0
 public void SetShipment(Shipment shipment)
 {
     OrderShipment = new OrderShipment(shipment);
 }
Пример #2
0
 private void SetShipment(Shipment shipment) => Shipment = shipment;
Пример #3
0
 public Order(User user, IEnumerable <ProductOrder> productOrders, OrderDiscount orderDiscount, Shipment shipment, Payment payment,
              decimal basePrice, decimal finalPrice, string comment, Address address)
 {
     IsClosed  = false;
     Comment   = comment;
     BasePrice = basePrice;
     SetShipment(shipment);
     SetPayment(payment);
     CreationDateTime = DateTimeOffset.UtcNow;
     AddProductOrders(productOrders);
     SetDiscount(orderDiscount);
     SetAddress(address);
     FinalPrice = finalPrice;
     SetUser(user);
     DiscountValue = orderDiscount?.PercentValue;
 }