public void MapModelToBO() { var mapper = new BOLIncludedColumnTestMapper(); ApiIncludedColumnTestRequestModel model = new ApiIncludedColumnTestRequestModel(); model.SetProperties("A", "A"); BOIncludedColumnTest response = mapper.MapModelToBO(1, model); response.Name.Should().Be("A"); response.Name2.Should().Be("A"); }
public void MapBOToModel() { var mapper = new BOLIncludedColumnTestMapper(); BOIncludedColumnTest bo = new BOIncludedColumnTest(); bo.SetProperties(1, "A", "A"); ApiIncludedColumnTestResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); response.Name2.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLIncludedColumnTestMapper(); BOIncludedColumnTest bo = new BOIncludedColumnTest(); bo.SetProperties(1, "A", "A"); List <ApiIncludedColumnTestResponseModel> response = mapper.MapBOToModel(new List <BOIncludedColumnTest>() { { bo } }); response.Count.Should().Be(1); }
public void MapEFToBO() { var mapper = new DALIncludedColumnTestMapper(); IncludedColumnTest entity = new IncludedColumnTest(); entity.SetProperties(1, "A", "A"); BOIncludedColumnTest response = mapper.MapEFToBO(entity); response.Id.Should().Be(1); response.Name.Should().Be("A"); response.Name2.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALIncludedColumnTestMapper(); var bo = new BOIncludedColumnTest(); bo.SetProperties(1, "A", "A"); IncludedColumnTest response = mapper.MapBOToEF(bo); response.Id.Should().Be(1); response.Name.Should().Be("A"); response.Name2.Should().Be("A"); }