Beispiel #1
0
 public Order(long id, long customerId, OrderDeliveryInfomation deliveryInfomation = null, string remark = null)
 {
     this.Id                = Checker.GTZero(id, nameof(id));
     this.CustomerId        = Checker.GTZero(customerId, nameof(customerId));
     this.Items             = new List <OrderItem>();
     this.DeliveryInfomaton = deliveryInfomation;
     this.Status            = new OrderStatus(OrderStatusEnum.Creating);
     this.Remark            = remark;
     this.Amount            = 0;
 }
Beispiel #2
0
 /// <summary>
 /// 调整收货信息
 /// </summary>
 /// <param name="deliveryInfomation"></param>
 public void ChangeDeliveryInfomation(OrderDeliveryInfomation deliveryInfomation)
 {
     Checker.NotNull(deliveryInfomation, nameof(deliveryInfomation));
     this.DeliveryInfomaton = deliveryInfomation;
 }