public double CalculatedCalories() { double calories = BaseDoughCalories * weight * validFlourType[FlourType.ToLower()] * validBakingTechnique[BakingTechnique.ToLower()]; return(calories); }
public Dough(string flourType, string bakingTechnique, double weight) { this.defaultFlourTypes = new Flour(); this.defaultBakingTechniques = new BakingTechnique(); this.FlourType = flourType; this.BakingTechnique = bakingTechnique; this.Weight = weight; }
private double CalculateDough(string flourType, string techType) { double flour = FlourType.ValidateType(flourType); double technique = BakingTechnique.ValidateTechniques(techType); double sum = (2 * weight * flour * technique); return(sum); }