public void MapBOToModel() { var mapper = new BOLInvitationMapper(); BOInvitation bo = new BOInvitation(); bo.SetProperties("A", "A", "A"); ApiInvitationResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be("A"); response.InvitationCode.Should().Be("A"); response.JSON.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALInvitationMapper(); var bo = new BOInvitation(); bo.SetProperties("A", "A", "A"); Invitation response = mapper.MapBOToEF(bo); response.Id.Should().Be("A"); response.InvitationCode.Should().Be("A"); response.JSON.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLInvitationMapper(); BOInvitation bo = new BOInvitation(); bo.SetProperties("A", "A", "A"); List <ApiInvitationResponseModel> response = mapper.MapBOToModel(new List <BOInvitation>() { { bo } }); response.Count.Should().Be(1); }