Example #1
0
        public void DeleteTest(string url, int articleID)
        {


            List<Article> articles1 =factory.SearchURL(url);
            Assert.AreEqual(1, articles1.Count, "THere should be only 1 article");
            factory.DeleteArticle(articleID);


            List<Article> articles = factory.SearchURL(url);
            Assert.AreEqual(0, articles.Count, "The article should have been deleted");

            List<VoteHistory> vHis = new ItemFactory().GetVoteHistory(articleID);
            Assert.AreEqual(0, vHis.Count);

        }
Example #2
0
        public void Init()
        {


            factory = new ItemFactory();
        }