From 7ef186429d1b14196304c790181c935639a1baa8 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 8 Feb 2019 10:54:04 +0000 Subject: Commented out code to test Database --- Main/Program.cs | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'Main/Program.cs') diff --git a/Main/Program.cs b/Main/Program.cs index a0ea7ee..48897d6 100644 --- a/Main/Program.cs +++ b/Main/Program.cs @@ -2,27 +2,29 @@ using System.Linq; using System.Threading.Tasks; using System.Collections.Generic; + +using Database; using Classes; using Aggregator.Parser; namespace Main { internal static class Program { private static async Task Main(string[] args) { - List configs = new List() { - new Config() { - Source = "BBC", - Title = 0, - Description = 1, - ArticleLink = 2, - ImageLink = 5, - PublishDate = 4 - } - }; - string[] xmls = new [] { - await Download.DownloadXML("http://feeds.bbci.co.uk/news/rss.xml") - }; - List
articles = ParserService.ParseMultiple(xmls, configs).ToList(); - Console.WriteLine(articles.Count); + // List configs = new List() { + // new Config() { + // Source = "BBC", + // Title = 0, + // Description = 1, + // ArticleLink = 2, + // ImageLink = 5, + // PublishDate = 4 + // } + // }; + // string[] xmls = new [] { + // await Download.DownloadXML("http://feeds.bbci.co.uk/news/rss.xml") + // }; + // List
articles = ParserService.ParseMultiple(xmls, configs).ToList(); + // Console.WriteLine(articles.Count); } } } -- cgit v1.2.3-13-gbd6f