Exemplo n.º 1
0
 public Order(int orderId, string clientName)
 {
     this.orderId    = orderId;
     this.clientName = clientName;
     details         = new OrderDetails();
 }
Exemplo n.º 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");
        }
Exemplo n.º 3
0
 protected bool Equals(OrderDetails other)
 {
     return(Equals(Good, other.Good));
 }
 public OrderDetails(OrderDetails od)
     : this(od.ProductName, od.ProductNumber)
 {
 }