Example #1
0
 public ToppingsDecorator(Pizza pizzaToDecorate)
 {
     BasePizza = pizzaToDecorate;
 }
Example #2
0
 public SausageTopping(Pizza pizzaToDecorate)
     : base(pizzaToDecorate)
 {
     Name  = $"Sausage {pizzaToDecorate.Name}";
     Price = 1.49;
 }
Example #3
0
 public MushroomTopping(Pizza pizzaToDecorate)
     : base(pizzaToDecorate)
 {
     Name  = $"Mushroom {pizzaToDecorate.Name}";
     Price = 1.49;
 }
Example #4
0
 public PepperoniTopping(Pizza pizzaToDecorate)
     : base(pizzaToDecorate)
 {
     Name  = $"Pepperoni {pizzaToDecorate.Name}";
     Price = 1.49;
 }
Example #5
0
 public ExtraCheeseTopping(Pizza pizzaToDecorate)
     : base(pizzaToDecorate)
 {
     Name  = $"Extra Cheese {pizzaToDecorate.Name}";
     Price = 0.99;
 }