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