public void MapEFToBOList() { var mapper = new DALVStateProvinceCountryRegionMapper(); VStateProvinceCountryRegion entity = new VStateProvinceCountryRegion(); entity.SetProperties("A", "A", true, "A", 1, "A", 1); List <BOVStateProvinceCountryRegion> response = mapper.MapEFToBO(new List <VStateProvinceCountryRegion>() { entity }); response.Count.Should().Be(1); }
public virtual VStateProvinceCountryRegion MapBOToEF( BOVStateProvinceCountryRegion bo) { VStateProvinceCountryRegion efVStateProvinceCountryRegion = new VStateProvinceCountryRegion(); efVStateProvinceCountryRegion.SetProperties( bo.CountryRegionCode, bo.CountryRegionName, bo.IsOnlyStateProvinceFlag, bo.StateProvinceCode, bo.StateProvinceID, bo.StateProvinceName, bo.TerritoryID); return(efVStateProvinceCountryRegion); }
public void MapEFToBO() { var mapper = new DALVStateProvinceCountryRegionMapper(); VStateProvinceCountryRegion entity = new VStateProvinceCountryRegion(); entity.SetProperties("A", "A", true, "A", 1, "A", 1); BOVStateProvinceCountryRegion response = mapper.MapEFToBO(entity); response.CountryRegionCode.Should().Be("A"); response.CountryRegionName.Should().Be("A"); response.IsOnlyStateProvinceFlag.Should().Be(true); response.StateProvinceCode.Should().Be("A"); response.StateProvinceID.Should().Be(1); response.StateProvinceName.Should().Be("A"); response.TerritoryID.Should().Be(1); }