public HearingIsReadyForVideoIntegrationEvent(Hearing hearing) { Hearing = HearingDtoMapper.MapToDto(hearing); var hearingParticipants = hearing.GetParticipants(); Participants = hearingParticipants.Select(ParticipantDtoMapper.MapToDto).ToList(); }
public void should_map_hearing_to_dto() { var hearing = GetHearing(); var result = HearingDtoMapper.MapToDto(hearing); var @case = hearing.GetCases().First(); result.CaseName.Should().Be(@case.Name); result.CaseNumber.Should().Be(@case.Number); result.CaseType.Should().Be(hearing.CaseType.Name); result.HearingId.Should().Be(hearing.Id); result.RecordAudio.Should().Be(hearing.AudioRecordingRequired); result.ScheduledDuration.Should().Be(hearing.ScheduledDuration); result.ScheduledDateTime.Should().Be(hearing.ScheduledDateTime); result.HearingVenueName.Should().Be(hearing.HearingVenueName); }
public HearingDetailsUpdatedIntegrationEvent(Hearing hearing) { Hearing = HearingDtoMapper.MapToDto(hearing); }
public HearingDetailsUpdatedIntegrationEvent(Hearing hearing) { var @case = hearing.GetCases().First(); // Does this need to be a lead case? Leadcase prop needs to be set on the domain Hearing = HearingDtoMapper.MapToDto(hearing); }