From 78d0a501c658b75027dade53012a4b5812c4dbf6 Mon Sep 17 00:00:00 2001 From: Shaed Parkar Date: Tue, 21 May 2019 14:36:24 +0100 Subject: [PATCH] Add representee to participant --- .../Mappers/ParticipantToParticipantRequestMapper.cs | 3 ++- .../VideoApi/Contracts/ParticipantRequest.cs | 1 + .../Mappers/ParticipantToParticipantRequestMapperTests.cs | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/BookingQueueSubscriber/BookingQueueSubscriber.Services/Mappers/ParticipantToParticipantRequestMapper.cs b/BookingQueueSubscriber/BookingQueueSubscriber.Services/Mappers/ParticipantToParticipantRequestMapper.cs index 20f6f4fc..e3a3e099 100644 --- a/BookingQueueSubscriber/BookingQueueSubscriber.Services/Mappers/ParticipantToParticipantRequestMapper.cs +++ b/BookingQueueSubscriber/BookingQueueSubscriber.Services/Mappers/ParticipantToParticipantRequestMapper.cs @@ -15,7 +15,8 @@ public ParticipantRequest MapToParticipantRequest(ParticipantDto participantDto) DisplayName = participantDto.DisplayName, UserRole = Enum.Parse(participantDto.UserRole), CaseTypeGroup = participantDto.CaseGroupType.ToString(), - ParticipantRefId = participantDto.ParticipantId + ParticipantRefId = participantDto.ParticipantId, + Representee = participantDto.Representee }; return request; diff --git a/BookingQueueSubscriber/BookingQueueSubscriber.Services/VideoApi/Contracts/ParticipantRequest.cs b/BookingQueueSubscriber/BookingQueueSubscriber.Services/VideoApi/Contracts/ParticipantRequest.cs index 8d2f4b4a..bc39996b 100644 --- a/BookingQueueSubscriber/BookingQueueSubscriber.Services/VideoApi/Contracts/ParticipantRequest.cs +++ b/BookingQueueSubscriber/BookingQueueSubscriber.Services/VideoApi/Contracts/ParticipantRequest.cs @@ -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 diff --git a/BookingQueueSubscriber/BookingQueueSubscriber.UnitTests/Mappers/ParticipantToParticipantRequestMapperTests.cs b/BookingQueueSubscriber/BookingQueueSubscriber.UnitTests/Mappers/ParticipantToParticipantRequestMapperTests.cs index 6af80aeb..0dded821 100644 --- a/BookingQueueSubscriber/BookingQueueSubscriber.UnitTests/Mappers/ParticipantToParticipantRequestMapperTests.cs +++ b/BookingQueueSubscriber/BookingQueueSubscriber.UnitTests/Mappers/ParticipantToParticipantRequestMapperTests.cs @@ -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()