public void Classification_GivenDemographicsAndBmiInfo_ReturnsCorrectBmiClassification( double bmi, Race race, BodyMassIndex expectecBodyMassIndex) { var bodyComposition = BodyCompositionBuilder.Initialize() .SetHeight(LengthConversion.CentimetersToInches(100)) .SetWeight(MassConversion.KilogramsToLbs(bmi)) .BuildWithoutModelValidation(); var patient = PatientBuilder.Initialize() .SetRace(race) .BuildWithoutModelValidation(); var result = new BodyMassIndexClassification(new BodyCompositionClassificationParameters(bodyComposition, patient)) .Classification; Assert.Equal(expectecBodyMassIndex, result); }
internal static GripStrengthLimits BuildFromKilogramsInput(double lower, double upper) { return(BuildFromPoundsInput(MassConversion.KilogramsToLbs(lower), MassConversion.KilogramsToLbs(upper))); }