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