public void TestGetChildAreas_Area_Not_Ignored_For_Profile_That_Requires_It() { var areas = new AreasController().GetChildAreas(AreaTypeIds.CountyAndUnitaryAuthority, AreaCodes.Gor_SouthWest, ProfileIds.Phof); Assert.IsTrue(areas.Select(x => x.Code).Contains(AreaCodes.CountyUa_IslesOfScilly)); }
public void TestGetChildAreas_Area_Not_Ignored_When_Profile_Not_Specified() { var areas = new AreasController().GetChildAreas(AreaTypeIds.CountyAndUnitaryAuthority, AreaCodes.Gor_SouthWest); Assert.IsTrue(areas.Select(x => x.Code).Contains(AreaCodes.CountyUa_IslesOfScilly)); }
public void TestGetChildAreas_Area_Ignored_For_Profile() { var areas = new AreasController().GetChildAreas(AreaTypeIds.CountyAndUnitaryAuthority, AreaCodes.Gor_SouthWest, ProfileIds.LongerLives); Assert.IsFalse(areas.Select(x => x.Code).Contains(AreaCodes.CountyUa_IslesOfScilly), "Isles of Scilly should have been ignored"); }