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