public async Task SearchAsync_BasicCall_OperationSuccess() { var response = await _openApiProxyClient.SearchAsync(new SearchRequest { Keyword = "superman", SortBy = SearchRequestSortBy.Relevance }); Assert.IsNotNull(response); Assert.IsTrue(response.OperationSuccess); Assert.IsTrue(string.IsNullOrEmpty(response.ErrorMessage)); Assert.IsTrue(response.ItemCount > 0); }
public async Task Search_ApiKeyMissing_MissingApiKeyExceptionRaised() { var response = await _openApiProxyClient.SearchAsync(new SearchRequest { Keyword = "superman", SortBy = SearchRequestSortBy.Relevance }); }