Esempio n. 1
0
        static void Main(string[] args)
        {
            CoffeeWithHook cwh = new CoffeeWithHook();

            Console.WriteLine("Preparing coffee");
            cwh.PrepareRecipe();
            Console.ReadLine();
        }
Esempio n. 2
0
 static void Main(string[] args)
 {
     TeaWithHook myTea = new TeaWithHook();
     CoffeeWithHook myCoffee = new CoffeeWithHook();
     Console.WriteLine("\tMaking tea");
     myTea.PrepareRecipe();
     Console.WriteLine("\tMaking coffee");
     myCoffee.PrepareRecipe();
     Console.ReadKey(true);
 }
Esempio n. 3
0
        private static void TestStarBuzzWithHook()
        {
            Console.WriteLine("\r\nDrink 1 With Hook...");
            ICaffeineBeverageWithHook myDrink = new TeaWithHook();

            myDrink.PrepareRecipe();

            Console.WriteLine("\r\nDrink 2 With Hook...");
            myDrink = new CoffeeWithHook();
            myDrink.PrepareRecipe();
        }
Esempio n. 4
0
        public static void Test()
        {
            var teaWithHook    = new TeaWithHook();
            var coffeeWithHook = new CoffeeWithHook();

            Console.WriteLine("\nMaking tea...");
            teaWithHook.PrepareRecipe();

            Console.WriteLine("\nMaking coffee...");
            coffeeWithHook.PrepareRecipe();
        }