public Pizza(IOrder order)
 {
     this.order = order;
     Crust      = new Crust()
     {
         Name = "Regular"
     };
     Size = new Size()
     {
         Name = "Medium"
     };
     toppings = new List <Topping>();
 }
 public Pizza(IOrder order)
 {
     this.order = order;
     Crust      = new Crust()
     {
         Id = 1
     };
     Size = new Size()
     {
         Id = 1
     };
     toppings = new List <Topping>();
 }
 public decimal PriceIf(Crust crust)
 {
     return(order.Store.PriceIf(this, crust));
 }
Exemple #4
0
 internal decimal PriceIf(IPizza pizza, Crust crust)
 {
     return(CalculatePrice(crust.Id, pizza.Size.Id, pizza.Toppings.Count()));
 }