Skip to content

Commit

Permalink
Merge pull request #3 from hmcts/feature/VIH-4510-add-representee
Browse files Browse the repository at this point in the history
Add representee to participant
  • Loading branch information
shaed-parkar authored May 21, 2019
2 parents a48099e + 78d0a50 commit bee0df2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public ParticipantRequest MapToParticipantRequest(ParticipantDto participantDto)
DisplayName = participantDto.DisplayName,
UserRole = Enum.Parse<UserRole>(participantDto.UserRole),
CaseTypeGroup = participantDto.CaseGroupType.ToString(),
ParticipantRefId = participantDto.ParticipantId
ParticipantRefId = participantDto.ParticipantId,
Representee = participantDto.Representee
};

return request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class ParticipantRequest
public string Username { get; set; }
public UserRole UserRole { get; set; }
public string CaseTypeGroup { get; set; }
public string Representee { get; set; }
}

public enum UserRole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public void should_map_participant_dto_to_participant_request()
request.Name.Should().Be(participantDto.Fullname);
request.UserRole.ToString().Should().Be(participantDto.UserRole);
request.CaseTypeGroup.Should().Be(participantDto.CaseGroupType.ToString());
request.Representee.Should().Be(participantDto.Representee);
}

private static ParticipantDto CreateParticipantDto()
Expand Down

0 comments on commit bee0df2

Please sign in to comment.