示例#1
0
        protected MuscularStrengthClassification(MuscularStrengthTest test, Patient patient)
        {
            if (patient == null)
            {
                throw new ArgumentNullException(nameof(patient));
            }
            _test = test ?? throw new ArgumentNullException(nameof(test));

            if (_test.Type == StrengthTest.Pushups)
            {
                _ranges = PushupsRepository.GetRanges(patient);
            }
            else if (_test.Type == StrengthTest.Situps)
            {
                _ranges = SitupsRepository.GetRanges(patient);
            }
            else if (_test.Type == StrengthTest.SitAndReach)
            {
                _ranges = SitAndReachRepository.GetRanges(patient);
            }
            else
            {
                throw new NotImplementedException(nameof(_test.Type));
            }
        }
 public MuscularStrengthClassificationParameters(MuscularStrengthTest test, Patient patient)
 {
     Test    = test;
     Patient = patient;
 }