public void AddCansToMachine()
        {
            //create a for loop to add the coins
            for (int i = 0; i < 10; i++)
            {
                OrangeSoda orangeSoda = new OrangeSoda();
                inventory.Add(orangeSoda);
                Cola cola = new Cola();
                inventory.Add(cola);
            }

            for (int i = 0; i < 7; i++)
            {
                Rootbeer rootbeer = new Rootbeer();
                inventory.Add(rootbeer);
            }
        }
Beispiel #2
0
 public void FillInventory()
 {
     for (int i = 0; i < 12; i++)
     {
         Rootbeer rootbeer = new Rootbeer();
         inventory.Add(rootbeer);
     }
     for (int i = 0; i < 12; i++)
     {
         Cola cola = new Cola();
         inventory.Add(cola);
     }
     for (int i = 0; i < 1; i++)
     {
         Orange_Soda orange_Soda = new Orange_Soda();
         inventory.Add(orange_Soda);
     }
 }