static void Main(string[] args) { CalorieService calorieService = new CalorieService(); Person person = new Person() { Gender = Gender.Male, HeightFeet = 6, WeightPounds = 194, Age = 29 }; var reeCals = calorieService.CalcuateRestingEnergyExpenditure(person); Console.WriteLine("Calories = " + reeCals); }
public void TestREECalcualtion_Returns_Correct_Calorie() { CalorieService calorieService = new CalorieService(); Person person = new Person() { Gender = Gender.Male, HeightFeet = 6, WeightPounds = 194, Age = 29 }; var reeCals = calorieService.CalcuateRestingEnergyExpenditure(person); Console.WriteLine("Calories = " + reeCals); Assert.True(reeCals == 1882); }