public void AddStaticPageWorks()
        {
            var repo = new FakeBlogRepo();
            BlogManager mgr = new BlogManager(repo);

            StaticPage page = new StaticPage();

            page.PageTitle = "DayZ";
            page.PageContent = "This is a zombie page";
            page.IsEnabled = true;

            mgr.AddStaticPage(page);

            var staticPageList = mgr.GetAllStaticPages();

            Assert.AreEqual(3, staticPageList.Count());
            Assert.True(staticPageList.ElementAt(2).PageTitle == "DayZ");
            Assert.True(staticPageList.ElementAt(2).PageId == 3);
        }
        public void FlipStaticPageEnabledStatusWorks()
        {
            var repo = new FakeBlogRepo();
            BlogManager mgr = new BlogManager(repo);

            int pageId = 1;
            bool isEnabled = false;

            mgr.FlipStaticPageEnabledStatus(pageId, isEnabled);

            var staticPageList = mgr.GetAllStaticPages();

            Assert.True(staticPageList.ElementAt(0).IsEnabled == false);
        }