public async Task Autocomplete_returns_full_postcodes_for_partial_async() { var result = (await _client.AutocompleteAsync("GU1 1A")).ToList(); Assert.True(result.Any()); Assert.True(result.Contains("GU1 1AA")); }
public async Task <IEnumerable <string> > AutoCompleteAsync(string postcode) { PostcodesIOClient client = new PostcodesIOClient(); var result = await client.AutocompleteAsync(postcode); return(result); }