예제 #1
0
		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));			
		}
예제 #2
0
        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));
        }
예제 #3
0
		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));
		}
예제 #4
0
        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));
        }