Beispiel #1
0
        public void TestReverseGeocode()
        {
            //Arrange
            var result = Factual.ReverseGeocode(new Point(34.06021, -118.41828));

            //Assert
            AssertReceivedOkResponse(result);
        }
Beispiel #2
0
        public void TestGeocode()
        {
            //Arrange
            var     response = Factual.ReverseGeocode(new Point(Latitude, Longitude));
            dynamic json     = JsonConvert.DeserializeObject(response);

            //Assert
            AssertReceivedOkResponse(response);

            Assert.IsTrue(((ICollection <JToken>)json.response.data).Count > 0);
        }