public Order(int productsCount) { this.cardData = new Card(); this.status = OrderStatus.Pending; this.products = new List<Product>(); for (int i = 0; i < productsCount; i++) { this.products[i] = new Product(); } }
public Order(Card inCard, List<Product> inProducts) { this.cardData = inCard; this.products = inProducts; this.status = OrderStatus.Pending; }
public Order() { this.cardData = new Card(); this.status = OrderStatus.Pending; this.products = new List<Product>(); }