Exemple #1
0
        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;
 }
Exemple #4
0
 public void AddProduct(Shaverma shavermochka)
 {
     shavermochka.Ingredients.Add(" Just Lavash ");
     shavermochka.Price = 50;
 }
Exemple #5
0
 public void AddProduct(Shaverma shavermochka)
 {
     shavermochka.Ingredients.Add("Cheese Lavash ");
     shavermochka.Price = 60;
 }
Exemple #6
0
 public override void AddProduct(Shaverma shavermochka)
 {
     base.AddProduct(shavermochka);
     shavermochka.Ingredients.Add("Vegetables ");
     shavermochka.Price += 40;
 }
Exemple #7
0
 public override void AddProduct(Shaverma shavermochka)
 {
     base.AddProduct(shavermochka);
     shavermochka.Ingredients.Add("Sause ");
     shavermochka.Price += 30;
 }
Exemple #8
0
 public void AddProduct(Shaverma shavermochka)
 {
     shavermochka.Ingredients.Add("Pita ");
     shavermochka.Price = 45;
 }