コード例 #1
0
        private async Task ConfirmMultiDayHearing(HearingDetailsResponse hearing)
        {
            var confirmRequest = new UpdateBookingStatusRequestBuilder()
                                 .UpdatedBy(HearingData.CREATED_BY(Context.Config.UsernameStem))
                                 .Build();

            await BookingApiClient.UpdateBookingStatusAsync(hearing.Id, confirmRequest);

            Conference = await GetConferenceByHearingIdPollingAsync(hearing.Id);

            Verify.ConferenceDetailsResponse(Conference, hearing);
        }
コード例 #2
0
        public async Task Should_delete_conference_when_hearing_cancelled()
        {
            await CreateAndConfirmHearing();

            const string updatedBy = "*****@*****.**";

            var request = new UpdateBookingStatusRequestBuilder()
                          .WithStatus(UpdateBookingStatus.Cancelled)
                          .UpdatedBy(updatedBy)
                          .Build();
            await BookingApiClient.UpdateBookingStatusAsync(Hearing.Id, request);

            var result = await PollForConferenceDeleted(Hearing.Id);

            Hearing.Status = BookingStatus.Cancelled;
            result.Should().BeTrue();
        }
コード例 #3
0
        public async Task Should_create_cacd_conference_from_hearing()
        {
            await CreateAndConfirmHearing();

            var request = new BookHearingRequestBuilder(Context.Config.UsernameStem).CacdHearing().Build();

            var hearing = await BookingApiClient.BookNewHearingAsync(request);

            var confirmRequest = new UpdateBookingStatusRequestBuilder()
                                 .UpdatedBy(HearingData.CREATED_BY(Context.Config.UsernameStem))
                                 .Build();

            await BookingApiClient.UpdateBookingStatusAsync(hearing.Id, confirmRequest);

            var conferenceDetailsResponse = await GetConferenceByHearingIdPollingAsync(Hearing.Id);

            conferenceDetailsResponse.Should().NotBeNull();
            Verify.ConferenceDetailsResponse(conferenceDetailsResponse, Hearing);
        }