void main()
        {
            var       HotDrinkMachine = new HotDrinkMachine();
            IHotDrink mydrink         = HotDrinkMachine.MakeDrink(AvailableDrink.COFFEE, 100);

            mydrink.Consume();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var machine = new HotDrinkMachine();

            //Calls for commented code
            //var drink = machine.MakeDrink(HotDrinkMachine.AvailableDrink.Tea, 2);
            //drink.Consume();
            //var secondDrink = machine.MakeDrink(HotDrinkMachine.AvailableDrink.Coffee, 5);
            //secondDrink.Consume();

            IHotDrink drink = machine.MakeDrink();

            drink.Consume();
        }
Exemple #3
0
 static void Main(string[] args)
 {
     var machine = new HotDrinkMachine();
     var drink   = machine.MakeDrink(HotDrinkMachine.AvailableDrink.Coffee, 50);
 }