private static LinkedParticipant MapLinkedParticipantToCacheModel( LinkedParticipantResponse linkedParticipant) { return(new LinkedParticipant { LinkedId = linkedParticipant.LinkedId, LinkType = Enum.Parse <LinkType>(linkedParticipant.Type.ToString(), true) }); }
public void Should_map_all_properties() { var linkedParticipant = new LinkedParticipantResponse { LinkedId = Guid.NewGuid(), Type = LinkedParticipantType.Interpreter }; var response = _sut.Map(linkedParticipant); response.LinkedId.Should().Be(linkedParticipant.LinkedId); response.LinkType.ToString().Should().Be(linkedParticipant.Type.ToString()); }