Beispiel #1
0
        public double CalculatedCalories()
        {
            double calories = BaseDoughCalories * weight * validFlourType[FlourType.ToLower()] *
                              validBakingTechnique[BakingTechnique.ToLower()];

            return(calories);
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
        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);
        }