Ejemplo n.º 1
0
        //Adding Prdoucts to the inventory and Displaying them.
        public static void InitializeProducts()
        {
            Console.WriteLine("\n Drinks In the machine");
            Console.WriteLine("-----------------------");
            Drinks coke = new Drinks("Coco Cola", 1011, 10, "Refreshing Drink! Enjoy it cold");

            coke.Examine();
            drinkslist.Add(coke);

            Drinks fanta = new Drinks("Fanta Lime", 1012, 10, "Refreshing Drink! Enjoy it cold");

            fanta.Examine();
            drinkslist.Add(fanta);

            Drinks water = new Drinks("Vitamin Water", 1013, 24, "Energy Drink to increase your vitamins");

            water.Examine();
            drinkslist.Add(water);
            Console.WriteLine("*******************************");

            Console.WriteLine("\n Snacks In the machine");
            Console.WriteLine("-----------------------");
            Snacks pringles = new Snacks("Pringles", 1021, 9, "Classic Salt Flavoured Potato Chips");

            pringles.Examine();
            snackslist.Add(pringles);

            Snacks lays = new Snacks("Lays Classic", 1022, 20, "Cream and Onion Flavoured Potato Chips");

            lays.Examine();
            snackslist.Add(lays);

            Snacks cheez = new Snacks("Cheez Doodles", 1023, 13, "Cheese Flavoured Balls");

            cheez.Examine();
            snackslist.Add(cheez);

            Console.WriteLine("*******************************");
            Console.WriteLine("\n Food items In the machine");
            Console.WriteLine("-----------------------");
            Food mealbar = new Food("Nature diet Protien Meal bar", 1031, 26, "Diet protien bar with Crunchy chocolate ");

            mealbar.Examine();
            foodlist.Add(mealbar);

            Food tramezzino = new Food("Tramezzino - Tuna Sandwich", 1032, 40, "Tuna sandwich with green Olives, Can be used in Microwave");

            tramezzino.Examine();
            foodlist.Add(tramezzino);

            Food panini = new Food("Panini -Chicken Sandwich", 1033, 55, "Roasted Chicken sandwich with tomotoes, Can be used in Microwave");

            panini.Examine();
            foodlist.Add(panini);

            Console.WriteLine("*******************************");
            Console.WriteLine("\n Chocolates In the machine");
            Console.WriteLine("-----------------------");

            Chocolate snickers = new Chocolate("Snickers", 1041, 13, "Nutty Chocolate bar!");

            snickers.Examine();
            chocolatelist.Add(snickers);

            Chocolate bounty = new Chocolate("Bounty", 1042, 13, "Coconut  filled Chocolate bar!");

            bounty.Examine();
            chocolatelist.Add(bounty);

            Chocolate kex = new Chocolate("Kex Choco", 1043, 12, "Crunchy Wafer Chocolate!");

            kex.Examine();
            chocolatelist.Add(kex);
        }
Ejemplo n.º 2
0
        public override Product Buy(int priceIn, string nameIn)
        {
            Chocolate chocolate = new Chocolate();

            return(chocolate);
        }