Beispiel #1
0
 public void HotDrink(IDrinkBuilder hot)
 {
     hot.BuildType(Type.Hot);
     hot.BuildCold(Cold.None);
     hot.BuildHot(Hot.Coffee);
     hot.BuildOthers(Others.None);
     hot.BuildSpecial(Special.Sugar);
 }
Beispiel #2
0
 public void ColdDrink(IDrinkBuilder cold)
 {
     cold.BuildType(Type.Cold);
     cold.BuildCold(Cold.Fanta);
     cold.BuildHot(Hot.None);
     cold.BuildOthers(Others.None);
     cold.BuildSpecial(Special.Ice);
 }
Beispiel #3
0
 public void Cold(IDrinkBuilder cold)
 {
     cold.BuildType(Type.Cold);
     cold.BuildCoffee(Coffee.None);
     cold.BuildTea(Tea.None);
     cold.BuildJuice(Juice.None);
     cold.BuildSoda(Soda.Cola);
     cold.BuildSpecial(Special.Ice);
 }
Beispiel #4
0
 public void Hot(IDrinkBuilder hot)
 {
     hot.BuildType(Type.Hot);
     hot.BuildCoffee(Coffee.None);
     hot.BuildTea(Tea.Black);
     hot.BuildJuice(Juice.None);
     hot.BuildSoda(Soda.None);
     hot.BuildSpecial(Special.Sugar);
 }
 public void MakeDrink(IDrinkBuilder builder)
 {
     builder.AddWater();
     builder.AddPowder();
 }
Beispiel #6
0
 public void BuildDrink(IDrinkBuilder drinkBuilder)
 {
     drinkBuilder.AddPowder();
     drinkBuilder.AddWater();
 }
Beispiel #7
0
 public Barista(IDrinkBuilder drinkBuilder)
 {
     _drinkBuilder = drinkBuilder;
 }