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); }
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); }
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); }
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); }