public void TestLowerTierAuthorityBuild() { var builder = new AreaCodeToCategoryIdMapBuilder { ChildAreaTypeId = AreaTypeIds.DistrictAndUnitaryAuthority, CategoryTypeId = CategoryTypeIds.DeprivationDecileDistrictAndUA2010 }; Dictionary<string, int> map = builder.Build(); Assert.AreEqual(10, map[AreaCodes.DistrictUa_SouthCambridgeshire]); }
public void TestBuild() { var builder = new AreaCodeToCategoryIdMapBuilder { ChildAreaTypeId = AreaTypeIds.CountyAndUnitaryAuthority, CategoryTypeId = CategoryTypeIds.DeprivationDecileCountyAndUA2010 }; Dictionary<string, int> map = builder.Build(); Assert.AreEqual(9, map[AreaCodes.CountyUa_Cambridgeshire]); }