Beispiel #1
0
        public void GetTreatmentOutcomeAtXYears_ReturnsCorrectOutcomeAt3Years(
            Notification notification,
            TreatmentOutcomeType?expectedOutcomeAt3Years)
        {
            var treatmentOutcomeAt3Years = TreatmentOutcomesHelper.GetTreatmentOutcomeAtXYears(notification, 3);

            Assert.Equal(treatmentOutcomeAt3Years?.TreatmentOutcomeType, expectedOutcomeAt3Years);
        }
        public void GetTreatmentOutcomeAtXYears_ReturnsCorrectOutcomeAt3Years(
            String exampleName,
            Notification notification,
            TreatmentOutcomeType?_,
            TreatmentOutcomeType?__,
            TreatmentOutcomeType?expectedOutcomeAt3Years)
        {
            var treatmentOutcomeAt1Year = TreatmentOutcomesHelper.GetTreatmentOutcomeAtXYears(notification, 3);

            Assert.Equal(treatmentOutcomeAt1Year?.TreatmentOutcomeType, expectedOutcomeAt3Years);
        }
 private void CalculateTreatmentOutcomes()
 {
     if (TreatmentOutcomesHelper.IsTreatmentOutcomeExpectedAtXYears(Notification, 1))
     {
         Should12MonthOutcomeBeDisplayed = true;
         OutcomeAt12Months = TreatmentOutcomesHelper.GetTreatmentOutcomeAtXYears(Notification, 1);
     }
     if (TreatmentOutcomesHelper.IsTreatmentOutcomeExpectedAtXYears(Notification, 2))
     {
         Should24MonthOutcomeBeDisplayed = true;
         OutcomeAt24Months = TreatmentOutcomesHelper.GetTreatmentOutcomeAtXYears(Notification, 2);
     }
     if (TreatmentOutcomesHelper.IsTreatmentOutcomeExpectedAtXYears(Notification, 3))
     {
         Should36MonthOutcomeBeDisplayed = true;
         OutcomeAt36Months = TreatmentOutcomesHelper.GetTreatmentOutcomeAtXYears(Notification, 3);
     }
 }