public void Autocomplete_returns_full_postcodes_for_partial()
        {
            var result = _client.Autocomplete("GU1 1A").ToList();

            Assert.True(result.Any());
            Assert.True(result.Contains("GU1 1AA"));
        }
Exemplo n.º 2
0
 public static async Task <IEnumerable <string> > AutocompleteAsync(this PostcodesIOClient client, string postcode)
 {
     return(await Task.Run(() => client.Autocomplete(postcode)));
 }