Esempio n. 1
0
        public void Yahoo_GeoPlanet_GeoPlanetClient_Concordance_WithStringId_ShouldReturnResults()
        {
            using (var geoPlanetClient = new GeoPlanetClient())
            {
                var response = geoPlanetClient.Concordance(ConcordanceNamespace.Iso, "DE", AppId);

                response.ShouldNotBeNull();
            }
        }
Esempio n. 2
0
        public void Yahoo_GeoPlanet_GeoPlanetClient_Concordance_ShouldReturnNull_When404ExceptionIsThrown()
        {
            using (var geoPlanetClient = new GeoPlanetClient())
            {
                var response = geoPlanetClient.Concordance(ConcordanceNamespace.GeoNames, 6295630, AppId);

                response.ShouldBeNull();
            }
        }
Esempio n. 3
0
        public void Yahoo_GeoPlanet_GeoPlanetClient_Concordance_WithIntId_ShouldReturnResults()
        {
            using (var geoPlanetClient = new GeoPlanetClient())
            {
                var response = geoPlanetClient.Concordance(ConcordanceNamespace.WoeId, 2380358, AppId);

                response.ShouldNotBeNull();
                response.ForNamespace.ShouldEqual(ConcordanceNamespace.WoeId);
            }
        }