public YahooPlaceFinderBoss()
 {
     Config = new YahooPlaceFinderBossConfig();
 }
Beispiel #2
0
        public void YahooPlaceFinderBoss()
        {
            string consumerKey = BossKey;
            string consumerSecret = BossSecret;
            string yahooappid = YahooAppId;

            YahooPlaceFinderBossConfig ypc =
                new YahooPlaceFinderBossConfig()
                .SetConsumerKey(consumerKey)
                .SetSecret(consumerSecret)
                .SetKey(yahooappid);

            YahooPlaceFinderBoss g = new YahooPlaceFinderBoss(ypc);

            var  Expected = new
            {
                Latitude = 30.267599,
                Longitude = -97.742981
            };
            IGeoCodeResult Target = g.GetCoordinates("Austin, TX");

            Assert.AreEqual(Expected.Latitude, Target.Latitude);
            Assert.AreEqual(Expected.Longitude, Target.Longitude);
        }
 public YahooPlaceFinderBoss()
 {
     Config = new YahooPlaceFinderBossConfig();
 }