private Meal MakeSoloMeal() { _mealBuilder = new SoloMeal(); _chef.Cook(_mealBuilder); var meal = _mealBuilder.ServeMeal(); return(meal); }
private Meal MakeBeerSet() { _mealBuilder = new BeerSet(); _chef.Cook(_mealBuilder); var meal = _mealBuilder.ServeMeal(); return(meal); }
public void Cook(IMealBuilder _mealBuilder) { _mealBuilder.AddAppetizer(); _mealBuilder.AddDessert(); _mealBuilder.AddMainCourse(); _mealBuilder.AddVeggie(); _mealBuilder.AddDrinks(); }
private Meal MakeKiddieMeal() { _mealBuilder = new KiddieMeal(); _chef.Cook(_mealBuilder); var kiddieMeal = _mealBuilder.ServeMeal(); return(kiddieMeal); }
public void Pie(IMealBuilder pie) { pie.BuildVegetables(Vegetables.None); pie.BuildFruits(Fruits.Apple); pie.BuildMeat(Meat.None); pie.BuildSpices(Spices.Sugar); pie.BuildMethod(Method.Baked); pie.BuildCombination(Combination.Pie); }
public void Barbeque(IMealBuilder barbeque) { barbeque.BuildVegetables(Vegetables.Brocolli); barbeque.BuildFruits(Fruits.None); barbeque.BuildMeat(Meat.Pork); barbeque.BuildSpices(Spices.Piper); barbeque.BuildMethod(Method.Grilled); barbeque.BuildCombination(Combination.Barbeque); }
public void Kebab(IMealBuilder kebab) { kebab.BuildVegetables(Vegetables.Potatoe); kebab.BuildFruits(Fruits.None); kebab.BuildMeat(Meat.Chicken); kebab.BuildSpices(Spices.Piper); kebab.BuildMethod(Method.Rolled); kebab.BuildCombination(Combination.Kebab); }
public void MeniuPremium(IMealBuilder premium) { premium.BuildNew(NewMeal.MenuPremium); premium.BuildBurger(Burger.Hamburger); premium.BuildPotatoe(Potatoe.FrenchFries); premium.BuildWraps(Wraps.Hashwrap); premium.BuildSalad(Salads.Caesar); premium.BuildSweets(Sweets.Croissant); premium.BuildPortion(Portion.No); }
public void MeniuClasic(IMealBuilder classic) { classic.BuildNew(NewMeal.MenuClassic); classic.BuildBurger(Burger.BigMac); classic.BuildPotatoe(Potatoe.Wedges); classic.BuildWraps(Wraps.None); classic.BuildSalad(Salads.Greek); classic.BuildSweets(Sweets.None); classic.BuildPortion(Portion.No); }
public void HappyMeal(IMealBuilder happym) { happym.BuildNew(NewMeal.HappyMeal); happym.BuildBurger(Burger.Cheeseburger); happym.BuildPotatoe(Potatoe.FrenchFries); happym.BuildWraps(Wraps.None); happym.BuildSalad(Salads.None); happym.BuildSweets(Sweets.None); happym.BuildPortion(Portion.Yes); }
public Cooker(IMealBuilder builder) { _mealBuilder = builder; }