public override void Given()
        {
            base.Given();

            _startPageReference = ContentRepository
                .Publish<StartPage>(ContentReference.RootPage);

            _oldParentReference = ContentRepository
                .GetDefault<StartPage>(_startPageReference)
                .With(p =>
                    {
                        p.PageName = "OldParent";
                        p.LinkURL = "oldparent";
                    })
                .SaveAndPublish(ContentRepository);

            _newParent = ContentRepository.GetDefault<StartPage>(_startPageReference);
            _newParent.PageName = "NewParent";
            _newParent.LinkURL = "newparent";
            ContentRepository.Save(_newParent, SaveAction.Publish, AccessLevel.NoAccess);

            _pageToMove = ContentRepository.GetDefault<StartPage>(_oldParentReference);
            _pageToMove.PageName = "PageToMove";
            ContentRepository.Save(_pageToMove, SaveAction.Publish, AccessLevel.NoAccess);
        }
        public override void Given()
        {
            base.Given();

            _startPage = ContentRepository.GetDefaultPageData<StartPage>(ContentReference.RootPage);
            ContentRepository.Save(_startPage, SaveAction.Publish, AccessLevel.NoAccess);

            var childPage1 = ContentRepository.GetDefaultPageData<StartPage>(_startPage.PageLink);
            childPage1.PageName = "ChildPage1";
            ContentRepository.Save(childPage1, SaveAction.Publish, AccessLevel.NoAccess);

            var childPage2 = ContentRepository.GetDefaultPageData<StartPage>(_startPage.PageLink);
            childPage2.PageName = "ChildPage2";
            ContentRepository.Save(childPage2, SaveAction.Publish, AccessLevel.NoAccess);

            var childPage3 = ContentRepository.GetDefaultPageData<StandardPage>(_startPage.PageLink);
            childPage3.PageName = "ChildPage3";
            ContentRepository.Save(childPage3, SaveAction.Publish, AccessLevel.NoAccess);
        }
        public override void When()
        {
            base.When();

            _loadedPage = ContentRepository.Get<StartPage>(_startPageReference);
        }