Exemplo n.º 1
0
        public void SearchPlaces_WhenIncorrectLocation_ShouldThrowInvalidOperationException()
        {
            foursquare_places.Models.Location location = new foursquare_places.Models.Location();
            location.Latitude  = 300;
            location.Longitude = -0.18;

            client.SearchPlaces(location, null);
        }
Exemplo n.º 2
0
        public void SearchPlaces_WhenLocationProvided_ReturnsListOfFPlaces()
        {
            foursquare_places.Models.Location location = new foursquare_places.Models.Location();
            location.Latitude  = 49.2027699;
            location.Longitude = 16.5989538;

            List <FPlace> venues = client.SearchPlaces(location, null);

            Assert.IsNotNull(venues);
            Assert.IsTrue(venues.Count > 0);
        }
Exemplo n.º 3
0
 public FPlace()
 {
     Id = string.Empty;
     Name = string.Empty;
     Location = new Location();
     Address = string.Empty;
     City = string.Empty;
     Country = string.Empty;
     FormattedAddress = new List<string>();
     Phone = string.Empty;
     Category = string.Empty;
     FriendsHere = new List<string>();
     CheckinsCount = 0;
     HereNow = 0;
     Url = string.Empty; ;
 }
        public void SearchPlaces_WhenIncorrectLocation_ShouldThrowInvalidOperationException()
        {
            foursquare_places.Models.Location location = new foursquare_places.Models.Location();
            location.Latitude = 300;
            location.Longitude = -0.18;

            client.SearchPlaces(location, null);
        }
        public void SearchPlaces_WhenLocationProvided_ReturnsListOfFPlaces()
        {
            foursquare_places.Models.Location location = new foursquare_places.Models.Location();
            location.Latitude = 49.2027699;
            location.Longitude = 16.5989538;

            List<FPlace> venues = client.SearchPlaces(location, null);

            Assert.IsNotNull(venues);
            Assert.IsTrue(venues.Count > 0);
        }