Exemplo n.º 1
0
        public void should_find_city_state_without_comma()
        {
            var result = _sut.GetFromAddress("Trenton NJ").FirstOrDefault();

            result.City.ShouldEqual("Trenton");
            result.State.ShouldEqual("New Jersey");
        }
Exemplo n.º 2
0
        public IEnumerable <GeoCodingResult> GetFromAddress(string address)
        {
            var key = MakeKey(address);

            return(Get(key, () => _decoratedService.GetFromAddress(address)));
        }
Exemplo n.º 3
0
        //   [Route("api/address/{address}", Name="addressSearch")]
        public IEnumerable <CoordinateViewModel> FindAddress(string address)
        {
            var result = _geoCodingService.GetFromAddress(address);

            return(_viewModelFactory.Create(result).ToList());
        }