Example #1
0
 private IEnumerable <Location> FindLocationByPlaceName(string placeName)
 {
     try
     {
         return(_locationLookupProvider.FindLocation(placeName));
     }
     catch (Exception e)
     {
         var message = string.Format("Location lookup failed for location {0}.", placeName);
         _logger.Debug(message, e);
         throw new CustomException(message, e, ErrorCodes.LocationLookupFailed);
     }
 }
 private IEnumerable <Location> FindLocationByPlaceName(string postcode)
 {
     try
     {
         return(_locationLookupProvider.FindLocation(postcode));
     }
     catch (Exception e)
     {
         const string message = "Location lookup failed.";
         _logger.Debug(message, e);
         throw new CustomException(
                   message, e, ErrorCodes.LocationLookupFailed);
     }
 }
Example #3
0
 public void Run()
 {
     _locationLookupProvider.FindLocation("London");
 }