Exemple #1
0
        public override void GetInventoryForComputer(Day day)
        {
            Store store = new Store();

            if (this.LemonadeStand.Inventory.Cups.Count < 100)
            {
                store.CupCheckout(100, 3.23, this.LemonadeStand.Inventory, this);
            }
            if (this.LemonadeStand.Inventory.Lemons.Count < 55)
            {
                store.LemonCheckout(75, 4.45, this.LemonadeStand.Inventory, this);
            }
            if (this.LemonadeStand.Inventory.Sugar.Count < 55)
            {
                store.SugarCheckout(100, 3.41, this.LemonadeStand.Inventory, this);
            }
            if (this.LemonadeStand.Inventory.Ice.Count < 500)
            {
                store.IceCheckout(500, 3.61, this.LemonadeStand.Inventory, this);
            }
        }