Exemplo n.º 1
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);
 }
Exemplo n.º 2
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();
        }
Exemplo n.º 3
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();
        }