Beispiel #1
0
        public void CanDelete()
        {
            IntegrityPage page = new IntegrityPage();

            mocks.Record();
            Expect.On(parser).Call(parser.IsRootOrStartPage(page)).Return(false);
            mocks.Replay(parser);

            bool canDelete = integrityManger.CanDelete(page);

            Assert.IsTrue(canDelete, "Page couldn't be deleted");

            mocks.Verify(parser);
        }
Beispiel #2
0
 /// <summary>Checks if an item is start or root page</summary>
 /// <param name="item">The item to check</param>
 /// <returns>True if the item is a start page or a root page</returns>
 public bool IsRootOrStartPage(ContentItem item)
 {
     return(inner.IsRootOrStartPage(item));
 }