static void Main(string[] args) { Shaverma GreatestShavermaInTheUniverseBestOfTheBestInTheWorldUDontTryItNever = new Shaverma(); IProduct MasterSheff = new LavashProduct(); MasterSheff = new ChickenProductWrapper(MasterSheff); MasterSheff = new SauceProductWrapper(MasterSheff); MasterSheff = new VegetablesProductWrapper(MasterSheff); MasterSheff.AddProduct(GreatestShavermaInTheUniverseBestOfTheBestInTheWorldUDontTryItNever); Console.WriteLine(GreatestShavermaInTheUniverseBestOfTheBestInTheWorldUDontTryItNever); Console.ReadKey(); }
public virtual void AddProduct(Shaverma shavermochka) { _product.AddProduct(shavermochka); }
public override void AddProduct(Shaverma shavermochka) { base.AddProduct(shavermochka); shavermochka.Ingredients.Add("Chicken "); shavermochka.Price += 65; }
public void AddProduct(Shaverma shavermochka) { shavermochka.Ingredients.Add(" Just Lavash "); shavermochka.Price = 50; }
public void AddProduct(Shaverma shavermochka) { shavermochka.Ingredients.Add("Cheese Lavash "); shavermochka.Price = 60; }
public override void AddProduct(Shaverma shavermochka) { base.AddProduct(shavermochka); shavermochka.Ingredients.Add("Vegetables "); shavermochka.Price += 40; }
public override void AddProduct(Shaverma shavermochka) { base.AddProduct(shavermochka); shavermochka.Ingredients.Add("Sause "); shavermochka.Price += 30; }
public void AddProduct(Shaverma shavermochka) { shavermochka.Ingredients.Add("Pita "); shavermochka.Price = 45; }