Exemple #1
0
        public async void SearchDeserializedAsyncResponseHasEntries(string searchTerm)
        {
            MangaSearchResponse response = await _sut.SearchDeserializedAsync(searchTerm);

            _output.WriteLine($"response.Entries.Count = {response.Entries.Count}");
            Assert.True(response.Entries.Count > 0);
        }
        private static async void TestSearchMangaAsync(ICredentialContext credential)
        {
            var asyncMangaSearcher       = new MangaSearchMethodsAsync(credential);
            MangaSearchResponse response = await asyncMangaSearcher.SearchDeserializedAsync("Dagashi Kashi");

            Console.WriteLine(response.ToJson());
            Console.WriteLine(response.ToXml());
        }
Exemple #3
0
        public async Task <MangaEntry> getManga(string query)
        {
            var response = await _mangaSearch.SearchDeserializedAsync(query);

            return(response.Entries.Count == 0 ? null : response.Entries[0]);
        }