public async Task CanListAllEden()
        {
            var k    = new MangaScraper.Core.Scrapers.Manga.Eden.SeriesParser();
            var docs = await k.ListInstances(Client.GetDocumentAsync, new Progress <double>());


            Assert.NotEmpty(docs);
        }
示例#2
0
        public async Task CanParseAllEden()
        {
            IMetaDataParser k    = new MangaScraper.Core.Scrapers.Manga.Eden.SeriesParser();
            var             docs = await k.ListInstances(Client.GetDocumentAsync, new Progress <double>());

            var faiList = new List <string>();
            await docs.Batch(50)
            .Transform(async t => {
                try {
                    k.GetMetaData(await Client.GetDocumentAsync(t.url));
                }
                catch (Exception e) {
                    Console.WriteLine(e);
                    faiList.Add(t.url);
                }

                return(0);
            },
                       CancellationToken.None,
                       null,
                       0);

            Assert.Empty(faiList);
        }