public void MapModelToBO() { var mapper = new BOLConfigurationMapper(); ApiConfigurationRequestModel model = new ApiConfigurationRequestModel(); model.SetProperties("A"); BOConfiguration response = mapper.MapModelToBO("A", model); response.JSON.Should().Be("A"); }
public void MapBOToModel() { var mapper = new BOLConfigurationMapper(); BOConfiguration bo = new BOConfiguration(); bo.SetProperties("A", "A"); ApiConfigurationResponseModel response = mapper.MapBOToModel(bo); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); }
public void MapEFToBO() { var mapper = new DALConfigurationMapper(); Configuration entity = new Configuration(); entity.SetProperties("A", "A"); BOConfiguration response = mapper.MapEFToBO(entity); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); }
public void MapBOToEF() { var mapper = new DALConfigurationMapper(); var bo = new BOConfiguration(); bo.SetProperties("A", "A"); Configuration response = mapper.MapBOToEF(bo); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLConfigurationMapper(); BOConfiguration bo = new BOConfiguration(); bo.SetProperties("A", "A"); List <ApiConfigurationResponseModel> response = mapper.MapBOToModel(new List <BOConfiguration>() { { bo } }); response.Count.Should().Be(1); }