public Payment(int ordersCount) { this.customer = new User(); this.orders = new List<Order>(); for (int i = 0; i < ordersCount; i++) { this.orders[i] = new Order(); } }
public Payment(User inCustomer, List<Order> inOrders) { this.customer = inCustomer; this.orders = inOrders; }
public Payment() { this.customer = new User(); this.orders = new List<Order>(); }