public void should_find_by_zip_code() { var result = _sut.GetFromZip("08610"); result.City.ShouldEqual("Trenton"); result.State.ShouldEqual("New Jersey"); }
public GeoCodingResult GetFromZip(string zip) { var key = MakeKey(zip); return(Get(key, () => _decoratedService.GetFromZip(zip))); }
//[Route("api/zipcode/{zipcode}", Name = "postalCodeSearch")] public CoordinateViewModel FindZip(string zipCode) { var result = _geoCodingService.GetFromZip(zipCode); return(_viewModelFactory.Create(result)); }