public void ReadItems()
        {
            using (var reader = new DeCorrespondentResources(CreateReader(), new ConsoleLogger(true)))
            {
                var items = reader.ReadNieuwItems().Take(10).ToList();

                Assert.IsTrue(items.Any());
                Console.WriteLine(string.Join(",", items.Select(i => i.Id)));
            }
        }
        public void ReadItem()
        {
            var id = 3785;
            using (var reader = new DeCorrespondentResources(CreateReader(), new ConsoleLogger(true)))
            {
                var article = reader.ReadArticle(id);

                File.WriteAllText("d:\\article_" + id, article);
            }
        }
        public void Publicationdate()
        {
            var config = FileConfig.Load(@"..\..\config-test.xml").DeCorrespondentReaderConfig;
            using (var webresources = DeCorrespondentWebReader.Login(new ConsoleLogger(true), config.Username, config.Password))
            {
                var reader = new DeCorrespondentResources(webresources, new ConsoleLogger(true));
                var articleReader = new ArticleReader();

                var result = reader.ReadNieuwItems().Take(20);

                foreach (var item in result)
                {
                    AssertIgnoreSeconds(articleReader.Read(reader.ReadArticle(item.Id)).Metadata.Published, item.Publicationdate);
                }

                var ids = result.Select(a => a.Id).ToList();
                Assert.AreEqual(ids.Count(), ids.Distinct().Count(), "Unieke ids verwacht");
            }
        }