Exemple #1
0
 public Store(List <Topping> toppings, List <Size> sizes, List <Crust> crusts, List <Pizza> presets)
 {
     Toppings.AddRange(toppings);
     Sizes.AddRange(sizes);
     Crusts.AddRange(crusts);
     PizzaPresets.AddRange(presets);
 }
 public CustomPizza(List <string> size, List <string> crust, List <Toppings> toppings, int price)
 {
     Size.AddRange(size);
     Crust.AddRange(crust);
     Toppings.AddRange(toppings);
     Price = price;
 }
Exemple #3
0
 public Pizza(string name, string size, string crust, List <string> toppings)
 {
     Name  = name;
     Size  = size;
     Crust = crust;
     Toppings.AddRange(toppings);
 }
Exemple #4
0
 // constructors
 public Pizza(string imageUrl, string size, List <string> toppings, string crust)
 {
     // System.Console.WriteLine("TEST" + imageUrl);
     ImageUrl = imageUrl;
     Size     = size;
     Toppings.AddRange(toppings);
     Crust = crust;
 }
 public void AddToppings(List <Topping> toppings)
 {
     Toppings.AddRange(toppings);
 }
 // for creating presets
 public Pizza(string name, List <Topping> toppings)
 {
     Name = name;
     Toppings.AddRange(toppings);
 }