public void should_map_hearing_dto_to_book_new_conference_request() { var hearingDto = CreateHearingDto(); var request = HearingToUpdateConferenceMapper.MapToUpdateConferenceRequest(hearingDto); request.Should().NotBeNull(); request.Should().BeEquivalentTo(hearingDto, options => options .Excluding(o => o.HearingId).ExcludingMissingMembers() ); request.HearingRefId.Should().Be(hearingDto.HearingId); request.AudioRecordingRequired.Should().Be(hearingDto.RecordAudio); }
public async Task HandleAsync(HearingDetailsUpdatedIntegrationEvent eventMessage) { var request = HearingToUpdateConferenceMapper.MapToUpdateConferenceRequest(eventMessage.Hearing); await _videoApiService.UpdateConferenceAsync(request); }