aboutsummaryrefslogtreecommitdiff
path: root/Main
diff options
context:
space:
mode:
authorAryadev Chavali <aryadevchavali1@gmail.com>2019-02-08 10:54:04 +0000
committerAryadev Chavali <aryadevchavali1@gmail.com>2019-02-08 10:54:04 +0000
commit7ef186429d1b14196304c790181c935639a1baa8 (patch)
treed32a32ab9fde6d45f54cb76433e094364e5554e1 /Main
parentcba96e29bea1df52f3ca5091ba08c0402c832458 (diff)
downloadnewsaggregator-7ef186429d1b14196304c790181c935639a1baa8.tar.gz
newsaggregator-7ef186429d1b14196304c790181c935639a1baa8.tar.bz2
newsaggregator-7ef186429d1b14196304c790181c935639a1baa8.zip
Commented out code to test Database
Diffstat (limited to 'Main')
-rw-r--r--Main/Program.cs32
1 files changed, 17 insertions, 15 deletions
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<Config> configs = new List<Config>() {
- 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<Article> articles = ParserService.ParseMultiple(xmls, configs).ToList();
- Console.WriteLine(articles.Count);
+ // List<Config> configs = new List<Config>() {
+ // 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<Article> articles = ParserService.ParseMultiple(xmls, configs).ToList();
+ // Console.WriteLine(articles.Count);
}
}
}