Ejemplo n.º 1
0
        public BbqChickenPizza()
        {
            Name = "Bbq Chicken Pizza";
            var chickenTopping = PizzaHelper.GetTopping("Chicken");

            PizzaToppings.Add(new PizzaTopping {
                ToppingId = chickenTopping.Id, Topping = chickenTopping
            });

            var bbqSauceTopping = PizzaHelper.GetTopping("BBQ Sauce");

            PizzaToppings.Add(new PizzaTopping {
                ToppingId = bbqSauceTopping.Id, Topping = bbqSauceTopping
            });
            CrustId = 1;
            SizeId  = 1;
        }
Ejemplo n.º 2
0
        public MeatPizza()
        {
            Name = "Meat Pizza";
            var baconTopping = PizzaHelper.GetTopping("Bacon");

            PizzaToppings.Add(new PizzaTopping {
                ToppingId = baconTopping.Id, Topping = baconTopping
            });

            var sausageTopping = PizzaHelper.GetTopping("Sausage");

            PizzaToppings.Add(new PizzaTopping {
                ToppingId = sausageTopping.Id, Topping = sausageTopping
            });
            CrustId = 1;
            SizeId  = 1;
        }
Ejemplo n.º 3
0
        public VeganPizza()
        {
            Name = "Vegan Pizza";
            var spinachTopping = PizzaHelper.GetTopping("Spinach");

            PizzaToppings.Add(new PizzaTopping {
                ToppingId = spinachTopping.Id, Topping = spinachTopping
            });

            var olivesTopping = PizzaHelper.GetTopping("Olives");

            PizzaToppings.Add(new PizzaTopping {
                ToppingId = olivesTopping.Id, Topping = olivesTopping
            });
            CrustId = 1;
            SizeId  = 1;
        }
Ejemplo n.º 4
0
        public KetoFriendlyPizza() //added
        {
            Name = "Keto Friendly Pizza";
            var extraCheeseTopping = PizzaHelper.GetTopping("Extra Cheese");

            PizzaToppings.Add(new PizzaTopping {
                ToppingId = extraCheeseTopping.Id, Topping = extraCheeseTopping
            });

            var baconTopping = PizzaHelper.GetTopping("Bacon");

            PizzaToppings.Add(new PizzaTopping {
                ToppingId = baconTopping.Id, Topping = baconTopping
            });
            CrustId = 1;
            SizeId  = 1;
        }