コード例 #1
0
        public async Task SearchAuthors()
        {
            var request = new SearchAuthorsRequest
            {
                Languages = { "C#" },
                Location  = "New York",
                Projects  = Range.Create(5, int.MaxValue)
            };
            var response = _client.SearchAuthors(request);

            Assert.IsNotNull(response);
            Assert.IsNotEmpty(response);
        }
コード例 #2
0
 /// <summary>
 /// Search the authors database for specific criteria
 /// </summary>
 /// <param name="request">Object with the search criteria</param>
 /// <returns>List of matching authors</returns>
 public List <Author> SearchAuthors(SearchAuthorsRequest request)
 {
     return(Execute(request).Result);
 }