public void Should_map_all_properties() { const ParticipantStatus expectedStatus = ParticipantStatus.Available; const Role expectedRole = Role.Individual; var participant = new ParticipantDetailsResponseBuilder(UserRole.Individual, "Claimant") .WithStatus(ParticipantState.Available).Build(); var response = ParticipantResponseForVhoMapper.MapParticipantToResponseModel(participant); response.Id.Should().Be(participant.Id); response.Name.Should().Be(participant.Name); response.Username.Should().Be(participant.Username); response.Status.Should().Be(expectedStatus); response.DisplayName.Should().Be(participant.Display_name); response.Role.Should().Be(expectedRole); response.CaseTypeGroup.Should().Be(participant.Case_type_group); response.Representee.Should().Be(participant.Representee); response.HearingRole.Should().Be(participant.Hearing_role); }
public void Should_map_all_properties() { const ParticipantStatus expectedStatus = ParticipantStatus.Available; const Role expectedRole = Role.Individual; var participant = new ParticipantDetailsResponseBuilder(UserRole.Individual, "Claimant") .WithStatus(ParticipantState.Available).Build(); var response = _sut.Map(participant); response.Id.Should().Be(participant.Id); response.Name.Should().Be(participant.Name); response.Status.Should().Be(expectedStatus); response.DisplayName.Should().Be(participant.DisplayName); response.Role.Should().Be(expectedRole); response.CaseTypeGroup.Should().Be(participant.CaseTypeGroup); response.Representee.Should().Be(participant.Representee); response.HearingRole.Should().Be(participant.HearingRole); response.LinkedParticipants.Count.Should().Be(1); response.LinkedParticipants[0].Should().Be(participant.LinkedParticipants[0]); }