private static void TestOutwardCode_Lookup_returns_populated_responseResult(OutwardCodeResult result) { Assert.AreEqual("IP3", result.Outcode); Assert.AreEqual(1.18801474315515, result.Longitude); Assert.AreEqual(52.0413592933506, result.Latitude); Assert.AreEqual(242903, result.Northings); Assert.AreEqual(618732, result.Eastings); Assert.AreEqual(new List <string>() { "Ipswich", "East Suffolk" }, result.AdminDistrict); Assert.AreEqual(new List <string>() { "Ipswich, unparished area", "Rushmere St. Andrew", "Purdis Farm" }, result.Parish); Assert.AreEqual(new List <string>() { "Suffolk" }, result.AdminCounty); Assert.AreEqual(new List <string>() { "Bixley", "Martlesham & Purdis Farm", "Gainsborough", "Holywells", "Rushmere St Andrew", "Alexandra", "St John's", "Priory Heath" }, result.AdminWard); }
private static void TestOutwardCode_Lookup_returns_populated_responseResult(OutwardCodeResult result) { Assert.AreEqual("IP3", result.Outcode); Assert.AreEqual(1.18793994032433, result.Longitude); Assert.AreEqual(52.0412229520819, result.Latitude); Assert.AreEqual(242888, result.Northings); Assert.AreEqual(618728, result.Eastings); Assert.AreEqual(new List <string>() { "Suffolk Coastal", "Ipswich" }, result.AdminDistrict); Assert.AreEqual(new List <string>() { "Ipswich, unparished area", "Rushmere St. Andrew", "Purdis Farm" }, result.Parish); Assert.AreEqual(new List <string>() { "Suffolk" }, result.AdminCounty); Assert.AreEqual(new List <string>() { "Alexandra", "St John's", "Tower", "Bixley", "Holywells", "Priory Heath", "Gainsborough", "Nacton & Purdis Farm" }, result.AdminWard); }