Пример #1
0
 protected void NavigateToDecisionPage(DecisionJourney decisionJourneyPage)
 {
     decisionJourneyPage.Validate();
     if (ShouldSelectYes(decisionJourneyPage))
     {
         decisionJourneyPage.SelectYes();
     }
     else
     {
         decisionJourneyPage.SelectNo();
     }
     decisionJourneyPage.Continue();
 }
Пример #2
0
        protected void SelectAnswer(DecisionJourney page, AnswerType answer)
        {
            switch (answer)
            {
            case AnswerType.Yes:
                page.SelectYes();
                break;

            case AnswerType.No:
                page.SelectNo();
                break;

            case AnswerType.NotSure:
                page.SelectNotSure();
                break;
            }
        }