public virtual ApiInvitationResponseModel MapBOToModel( BOInvitation boInvitation) { var model = new ApiInvitationResponseModel(); model.SetProperties(boInvitation.Id, boInvitation.InvitationCode, boInvitation.JSON); return(model); }
public void MapResponseToRequest() { var mapper = new ApiInvitationModelMapper(); var model = new ApiInvitationResponseModel(); model.SetProperties("A", "A", "A"); ApiInvitationRequestModel response = mapper.MapResponseToRequest(model); response.InvitationCode.Should().Be("A"); response.JSON.Should().Be("A"); }