public void MapModelToBO() { var mapper = new BOLProxyMapper(); ApiProxyRequestModel model = new ApiProxyRequestModel(); model.SetProperties("A", "A"); BOProxy response = mapper.MapModelToBO("A", model); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); }
public void MapBOToModel() { var mapper = new BOLProxyMapper(); BOProxy bo = new BOProxy(); bo.SetProperties("A", "A", "A"); ApiProxyResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLProxyMapper(); BOProxy bo = new BOProxy(); bo.SetProperties("A", "A", "A"); List <ApiProxyResponseModel> response = mapper.MapBOToModel(new List <BOProxy>() { { bo } }); response.Count.Should().Be(1); }
public void MapEFToBO() { var mapper = new DALProxyMapper(); Proxy entity = new Proxy(); entity.SetProperties("A", "A", "A"); BOProxy response = mapper.MapEFToBO(entity); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALProxyMapper(); var bo = new BOProxy(); bo.SetProperties("A", "A", "A"); Proxy response = mapper.MapBOToEF(bo); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); }