public PostCodeSearchController( ILogger <PostCodeSearchController> logger, IOptions <PostCodeSearchSettings> postCodeSearchSettings, IPostCodeSearchService postCodeSearchService, IPostCodeSearchHelper postCodeSearchHelper) { Throw.IfNull(logger, nameof(logger)); Throw.IfNull(postCodeSearchSettings, nameof(postCodeSearchSettings)); Throw.IfNull(postCodeSearchService, nameof(postCodeSearchService)); Throw.IfNull(postCodeSearchHelper, nameof(postCodeSearchHelper)); _logger = logger; _postCodeSearchSettings = postCodeSearchSettings.Value; _postCodeSearchService = postCodeSearchService; _postCodeSearchHelper = postCodeSearchHelper; }
internal static String APIKey(this IPostCodeSearchSettings extendee) { return(new String($"{extendee.Key}")); }
internal static Uri ToRetrieveUri(this IPostCodeSearchSettings extendee) { return(new Uri($"{extendee.RetrieveAddressBaseUrl}")); }
internal static Uri ToUri(this IPostCodeSearchSettings extendee) { return(new Uri($"{extendee.FindAddressesBaseUrl}")); }