Example #1
0
 public bool AddTopping(Topping topping)
 {
     if (Toppings == null)
     {
         DefaultToppings();
     }
     if (Toppings.Count < 5)
     {
         Toppings.Add(topping);
         return(true);
     }
     return(false);
 }
Example #2
0
 public PizzaTopping(APizzaModel pizza, Topping topping)
 {
     Pizza   = pizza;
     Topping = topping;
 }