Ejemplo n.º 1
0
        public CoffeeCup MakeBeverage(CupSize cupSize)
        {
            CoffeeCup espresso = new FluentCoffee()
                                 .ChooseCupSize(cupSize)
                                 .AddBeans(BeanSort.Arabica, 5)
                                 .AddWater(20)
                                 .Heating(waterTemp => waterTemp >= 95)
                                 .ToBeverage();

            Console.WriteLine("Your Espresso is ready!");
            Console.WriteLine();
            Console.WriteLine("You chose a " + cupSize.ToString() + " cup");
            Console.WriteLine("It was made with these ingredients: ");

            return(espresso);
        }
Ejemplo n.º 2
0
        public CoffeeCup MakeBeverage(CupSize cupSize)
        {
            CoffeeCup latte = new FluentCoffee()
                              .ChooseCupSize(cupSize)
                              .AddBeans(BeanSort.Robusta, 5)
                              .AddWater(10)
                              .AddMilk(20)
                              .Heating(waterTemp => waterTemp >= 95)
                              .ToBeverage();

            Console.WriteLine("Your Latte is ready!");
            Console.WriteLine();
            Console.WriteLine("You chose a " + cupSize.ToString() + " cup");
            Console.WriteLine("It was made with these ingredients: ");

            return(latte);
        }
Ejemplo n.º 3
0
        public CoffeeCup MakeBeverage(CupSize cupSize)
        {
            CoffeeCup americano = new FluentCoffee()
                                  .ChooseCupSize(cupSize)
                                  .AddBeans(BeanSort.Robusta, 6)
                                  .AddWater(15)
                                  .Heating(waterTemp => waterTemp >= 95)
                                  .AddWater(15)
                                  .ToBeverage();

            Console.WriteLine("Your Americano is ready");
            Console.WriteLine();
            Console.WriteLine("You chose a " + cupSize.ToString() + " cup");
            Console.WriteLine("It was made with these ingredients: ");

            return(americano);
        }
Ejemplo n.º 4
0
        public CoffeeCup MakeBeverage(CupSize cupSize)
        {
            CoffeeCup cappuccino = new FluentCoffee()
                                   .ChooseCupSize(cupSize)
                                   .AddBeans(BeanSort.Columbia, 6)
                                   .AddWater(15)
                                   .Heating(waterTemp => waterTemp >= 95)
                                   .AddMilk(10)
                                   .AddMilkFoam(6)
                                   .ToBeverage();

            Console.WriteLine("Your Cappuccino is ready!");
            Console.WriteLine();
            Console.WriteLine("You chose a " + cupSize.ToString() + " cup");
            Console.WriteLine("It was made with these ingredients: ");

            return(cappuccino);
        }