Exemple #1
0
        private static void Builder()
        {
            Console.WriteLine();
            Console.WriteLine("2. BUILDER");

            CoffeeMachine coffeeMachine = new CoffeeMachine();

            Coffee cappucino = coffeeMachine.GetBigCappuccinoWithOneSpoon();

            Console.WriteLine(cappucino.ToString());
            Console.WriteLine();

            Coffee espresso = coffeeMachine.GetBigEspressoWithTwoSpoonsAndCinamon();

            Console.WriteLine(espresso.ToString());
            Console.WriteLine();

            Coffee latte = coffeeMachine.GetSmallLatteWithNoSugarExtraMilkAndDoubleCoffee();

            Console.WriteLine(latte.ToString());
            Console.WriteLine();
        }