public void TestGetData_ParentArea() { var data = new ChildAreasForPdfsAction().GetResponse(ProfileIds.Phof, parentCode, areaTypeId); Assert.AreEqual(data.Parent.Code, parentCode); }
public void TestGetData_ChildAreas() { var data = new ChildAreasForPdfsAction().GetResponse(ProfileIds.Phof, parentCode, areaTypeId); foreach (var childArea in data.Children) { if (childArea.Name.Contains("Kent")) { return; } } Assert.Fail("Expected child area not found"); }
public void TestGetData_BenchmarkArea() { var data = new ChildAreasForPdfsAction().GetResponse(ProfileIds.Phof, parentCode, areaTypeId); Assert.AreEqual(data.Benchmark.Code, AreaCodes.England); }