public When_LocationService_Is_Called_To_Validate_An_Invalid_Terminated_Postcode() { var locationService = new LocationApiClient(new HttpClient(), new MatchingConfiguration { PostcodeRetrieverBaseUrl = "https://api.postcodes.io/" }); _result = locationService.IsTerminatedPostcodeAsync("CV1 2WT").GetAwaiter().GetResult(); }
public When_LocationService_Is_Called_To_Validate_A_Terminated_Postcode() { const string requestPostcode = "S70 2YW"; var httpClient = new TestPostcodesIoHttpClient().Get(requestPostcode); var locationService = new LocationApiClient(httpClient, new MatchingConfiguration { PostcodeRetrieverBaseUrl = "https://api.postcodes.io/" }); _postcodeResultDto = locationService.IsTerminatedPostcodeAsync(requestPostcode).GetAwaiter().GetResult(); }