public ProgressionSteps(
     TestContext testContext,
     AddParticipantSteps addParticipantSteps,
     AssignJudgeSteps assignJudgeSteps,
     BookingConfirmationSteps bookingConfirmationSteps,
     BookingDetailsSteps bookingDetailsSteps,
     BookingsListSteps bookingsListSteps,
     BrowserSteps browserSteps,
     DashboardSteps dashboardSteps,
     HearingDetailsSteps hearingDetailsSteps,
     HearingScheduleSteps hearingScheduleSteps,
     LoginSteps loginSteps,
     OtherInformationSteps otherInformationSteps,
     QuestionnaireSteps questionnaireSteps,
     SummarySteps summarySteps,
     VideoAccessPointsSteps videoAccessPointsSteps)
 {
     _c = testContext;
     _addParticipantSteps      = addParticipantSteps;
     _assignJudgeSteps         = assignJudgeSteps;
     _bookingConfirmationSteps = bookingConfirmationSteps;
     _bookingDetailsSteps      = bookingDetailsSteps;
     _bookingsListSteps        = bookingsListSteps;
     _browsersSteps            = browserSteps;
     _dashboardSteps           = dashboardSteps;
     _hearingDetailsSteps      = hearingDetailsSteps;
     _hearingScheduleSteps     = hearingScheduleSteps;
     _loginSteps             = loginSteps;
     _otherInformationSteps  = otherInformationSteps;
     _questionnaireSteps     = questionnaireSteps;
     _summarySteps           = summarySteps;
     _videoAccessPointsSteps = videoAccessPointsSteps;
 }
Ejemplo n.º 2
0
 public SummarySteps(
     TestContext testContext,
     Dictionary <UserDto, UserBrowser> browsers,
     BookingDetailsSteps bookingDetailsSteps,
     HearingDetailsSteps hearingDetailsSteps,
     HearingScheduleSteps hearingScheduleSteps,
     AssignJudgeSteps assignJudgeSteps,
     AddParticipantSteps addParticipantSteps,
     OtherInformationSteps otherInformationSteps,
     VideoAccessPointsSteps videoAccessPointsSteps)
 {
     _c                      = testContext;
     _browsers               = browsers;
     _bookingDetailsSteps    = bookingDetailsSteps;
     _hearingDetailsSteps    = hearingDetailsSteps;
     _hearingScheduleSteps   = hearingScheduleSteps;
     _assignJudgeSteps       = assignJudgeSteps;
     _addParticipantSteps    = addParticipantSteps;
     _otherInformationSteps  = otherInformationSteps;
     _videoAccessPointsSteps = videoAccessPointsSteps;
 }
        private void VerifyTheBookingDetails()
        {
            _browsers[_c.CurrentUser].TextOf(BookingDetailsPage.CaseNumberTitle).Should().Be(_c.Test.HearingDetails.CaseNumber);
            _browsers[_c.CurrentUser].TextOf(BookingDetailsPage.CreatedBy).Should().Be(_c.Test.CreatedBy);
            _browsers[_c.CurrentUser].TextOf(BookingDetailsPage.CreatedDate).Should().NotBeNullOrWhiteSpace();
            _browsers[_c.CurrentUser].TextOf(BookingDetailsPage.CaseNumber).Should().Be(_c.Test.HearingDetails.CaseNumber);
            _browsers[_c.CurrentUser].TextOf(BookingDetailsPage.CaseName).Should().Contain(_c.Test.HearingDetails.CaseName);
            _browsers[_c.CurrentUser].TextOf(BookingDetailsPage.CaseType).Should().Be(_c.Test.HearingDetails.CaseType.Name);
            _browsers[_c.CurrentUser].TextOf(BookingDetailsPage.HearingType).Should().Be(_c.Test.HearingDetails.HearingType.Name);
            _browsers[_c.CurrentUser].TextOf(BookingDetailsPage.CourtroomAddress).Should().Be($"{_c.Test.HearingSchedule.HearingVenue}, {_c.Test.HearingSchedule.Room}");
            _browsers[_c.CurrentUser].TextOf(BookingDetailsPage.AudioRecorded).Should().Be("Yes");
            _browsers[_c.CurrentUser].TextOf(BookingDetailsPage.OtherInformation).Should().Be(OtherInformationSteps.GetOtherInfo(_c.Test.TestData.OtherInformationDetails.OtherInformation));
            _browsers[_c.CurrentUser].TextOf(BookingDetailsPage.VideoAccessPoints(0)).Should().Be(_c.Test.VideoAccessPoints.DisplayName);
            _browsers[_c.CurrentUser].TextOf(BookingDetailsPage.HearingStartDate).ToLower().Should().Be(_c.Test.HearingSchedule.ScheduledDate.ToLocalTime().ToString(DateFormats.HearingSummaryDate).ToLower());

            var expectedDuration = _c.Test.HearingSchedule.MultiDays ? "listed for 8 hours" : $"listed for {_c.Test.HearingSchedule.DurationMinutes} minutes";

            _browsers[_c.CurrentUser].TextOf(BookingDetailsPage.Duration).Should().Contain(expectedDuration);
        }
Ejemplo n.º 4
0
        private void VerifyOtherInformation()
        {
            var otherInformation = OtherInformationSteps.GetOtherInfo(_c.Test.TestData.OtherInformationDetails.OtherInformation);

            _browsers[_c.CurrentUser].TextOf(SummaryPage.OtherInformation).Should().Be(otherInformation);
        }