Esempio n. 1
0
 public OrderItem(ProductOrder productOrder, CustomerOrder _customerOrder)
 {
     // TODO: Complete member initialization
     this._productOrder = productOrder;
     this._customerOrder = _customerOrder;
     this._discount = CalculateDiscount();
     this._amount = CalculateAmount();
 }
 public OrderPlacedEvent(CustomerOrder customerOrder, OrderItem orderItem, decimal totalAmount)
 {
     // TODO: Complete member initialization
     this.customerOrder = customerOrder;
     this.productOrder = orderItem._productOrder;
     this.totalAmount = totalAmount;
     this.amount = orderItem._amount;
     this.discount = orderItem._discount;
 }