public void GoogleGmapAmbiguous() { GoogleGmap g = new GoogleGmap(); IGeoCodeResult Target = new GeoCodeResult(); Target = g.GetCoordinates("Paris"); Assert.IsTrue(Target.Count > 0); }
public void GoogleMapNoResults() { GoogleGmapConfig gmc = new GoogleGmapConfig(); GoogleGmap g = new GoogleGmap(gmc); IGeoCodeResult Target = new GeoCodeResult(); Target = g.GetCoordinates("alskdfjkaadsflasd"); Assert.AreEqual(false, Target.HasValue); Assert.AreEqual(0, Target.Longitude); }
public void GoogleGmap() { GoogleGmap g = new GoogleGmap(); var Expected = new { Latitude = 30.267153, Longitude = -97.7430608 }; IGeoCodeResult Target = new GeoCodeResult(); Target = g.GetCoordinates("Austin, TX"); Assert.AreEqual(Expected.Latitude, Target.Latitude); Assert.AreEqual(Expected.Longitude, Target.Longitude); }