Beispiel #1
0
 public double ToppingTotalCalories()
 {
     return(2 * this.Weight * ToppingValidator.GetToppingModifier(this.ToppingProduct));
 }
Beispiel #2
0
 public double GetTotalCalories()
 {
     return(2 * this.Weight * ToppingValidator.GetModifier(this.Type));
 }
Beispiel #3
0
 public double GetTotalCalories()
 {
     return(CaloriesPerGramm * this.Weight * ToppingValidator.GetToppingModifier(this.type));
 }