コード例 #1
0
        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"));
        }
コード例 #2
0
 public static async Task <IEnumerable <string> > AutocompleteAsync(this PostcodesIOClient client, string postcode)
 {
     return(await Task.Run(() => client.Autocomplete(postcode)));
 }