Example #1
0
 public Order(int orderId, string clientName)
 {
     this.orderId    = orderId;
     this.clientName = clientName;
     details         = new OrderDetails();
 }
Example #2
0
        public override string ToString()
        {
            var tmp = $"OrderID:{OrderId}, Customer:{Customer}, OrderTime:{OrderTime}\n";

            return(OrderDetails.Aggregate(tmp, (current, g) => current + (g + "\n")) + $"Total price:{TotalPrice}\n");
        }
Example #3
0
 protected bool Equals(OrderDetails other)
 {
     return(Equals(Good, other.Good));
 }
 public OrderDetails(OrderDetails od)
     : this(od.ProductName, od.ProductNumber)
 {
 }