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);
        }
Пример #3
0
 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);
        }
Пример #5
0
 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);
 }
Пример #6
0
 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);
 }
Пример #7
0
 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);
 }
Пример #8
0
 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);
 }
Пример #9
0
 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);
 }
Пример #10
0
 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);
 }
Пример #11
0
 public Cooker(IMealBuilder builder)
 {
     _mealBuilder = builder;
 }