public bool DoesToppingExist(Topping topping, bool print)
 {
     foreach (var t in ToppingList)
     {
         if (t.Type == topping.Type)
         {
             if (print)
             {
                 System.Console.WriteLine("topping: " + t + " already added");
             }
             return(true);
         }
     }
     return(false);
 }
Exemple #2
0
 public void AddTopping(Topping topping)
 {
     _toppings.Add(topping);
 }
        public Topping SetTopping(string i)
        {
            Topping t = new Topping(i);

            return(t);
        }
Exemple #4
0
 public abstract void AddTopping(Topping t);
Exemple #5
0
 public abstract void RemoveTopping(Topping topping);