示例#1
0
        public void Should_map_all_participants(Participant participant)
        {
            var response = ParticipantForJudgeResponseMapper.MapParticipantSummaryToModel(participant);

            response.DisplayName.Should().BeEquivalentTo(participant.DisplayName);
            response.Role.Should().BeEquivalentTo(participant.UserRole);
            response.Representee.Should().BeEquivalentTo(participant.Representee);
            response.CaseTypeGroup.Should().BeEquivalentTo(participant.CaseTypeGroup);
            response.HearingRole.Should().BeEquivalentTo(participant.HearingRole);
        }
        public void Should_map_all_participants()
        {
            var participant = Builder <Participant> .CreateNew().Build();

            var response = ParticipantForJudgeResponseMapper.MapParticipantSummaryToModel(participant);

            response.DisplayName.Should().BeEquivalentTo(participant.Display_name);
            response.Role.Should().BeEquivalentTo(participant.Role);
            response.Representee.Should().BeEquivalentTo(participant.Representee);
            response.CaseTypeGroup.Should().BeEquivalentTo(participant.Case_type_group);
            response.HearingRole.Should().BeEquivalentTo(participant.Hearing_role);
        }