public void Calling_PlacesServices_WithoutGeo_Should_ReturnListOfPlacesWithoutGeo () { // Arrange // Act var service = new PlacesService (Config.AccessKey, Config.SecretKey); service.IncludeCoordinates = false; var places = service.GetPlaces (); // Assert Assert.Greater(places.Count, 0); Assert.IsTrue (places.All (x => x.Geography.Coordinates == null)); }
public void Calling_PlacesServices_Should_ReturnListOfPlaces() { // Arrange // Act var service = new PlacesService(Config.AccessKey, Config.SecretKey); var places = service.GetPlaces(); // Assert Assert.Greater(places.Count, 0); Assert.IsTrue(places.Any(x => x.Geography.Coordinates.Latitude > 0.0m)); Assert.IsTrue(places.Any(x => x.Geography.Coordinates.Longitude > 0.0m)); }
public void Calling_PlacesServices_Should_ReturnListOfPlaces () { // Arrange // Act var service = new PlacesService (Config.AccessKey, Config.SecretKey); var places = service.GetPlaces (); // Assert Assert.Greater(places.Count, 0); Assert.IsTrue (places.Any (x => x.Geography.Coordinates.Latitude > 0.0m)); Assert.IsTrue (places.Any (x => x.Geography.Coordinates.Longitude > 0.0m)); }
public void Calling_PlacesServices_WithoutGeo_Should_ReturnListOfPlacesWithoutGeo() { // Arrange // Act var service = new PlacesService(Config.AccessKey, Config.SecretKey); service.IncludeCoordinates = false; var places = service.GetPlaces(); // Assert Assert.Greater(places.Count, 0); Assert.IsTrue(places.All(x => x.Geography.Coordinates == null)); }