Exemple #1
0
        public static HealthStatus Analyze(Person person)
        {
            double BMINumber            = CalculateBMINumber(person);
            double bodyFatPercentNumber = CalculateBodyFatPercentNumber(BMINumber, person);
            var    bodyFatPercent       = new BodyFatPercent()
            {
                BodyFatPercentNumber = bodyFatPercentNumber, PersonSex = person.sex
            };

            return(new HealthStatus(BMINumber, bodyFatPercent));
        }
 public HealthStatus(double BMINumber, BodyFatPercent bodyFatPercent)
 {
     this.BMINumber      = BMINumber;
     this.BodyFatPercent = bodyFatPercent;
 }