Esempio n. 1
0
        public void ModifyPageOk()
        {
            PagesOperationServiceMockService mock = new PagesOperationServiceMockService();
            Page page = new Page()
            {
                PageID = mock.GetPages().FirstOrDefault().PageID,
                Route  = "/modify/route"
            };
            bool added = mock.LoadPage(page, false);

            Assert.True(mock.GetPage(page.Route) != null);
        }
Esempio n. 2
0
        public void GetPageById()
        {
            PagesOperationServiceMockService mock = new PagesOperationServiceMockService();

            Assert.True(mock.GetPage(mock.GetPages().FirstOrDefault().PageID) != null);
        }
Esempio n. 3
0
        public void GetPageByName()
        {
            PagesOperationServiceMockService mock = new PagesOperationServiceMockService();

            Assert.True(mock.GetPage("/pages/page1.html") != null);
        }