static void Main(string[] args) { CoffeeWithHook cwh = new CoffeeWithHook(); Console.WriteLine("Preparing coffee"); cwh.PrepareRecipe(); Console.ReadLine(); }
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); }
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(); }
public static void Test() { var teaWithHook = new TeaWithHook(); var coffeeWithHook = new CoffeeWithHook(); Console.WriteLine("\nMaking tea..."); teaWithHook.PrepareRecipe(); Console.WriteLine("\nMaking coffee..."); coffeeWithHook.PrepareRecipe(); }