Beispiel #1
0
        private MetadataContainerReferences CreateMetaDataPages()
        {
            var menuContainerPage =
                _pagesFixturesFactory.ContainerPageFixtures()
                .CreatePage <MenuContainerPage>(
                    FixtureConstants.PageNames.MenuContainer,
                    _metadataContainerReferences.MetaContainerPage.ContentLink);

            Guard.ValidateObject(menuContainerPage);
            _metadataContainerReferences.MenuContainerPage = menuContainerPage;
            return(_metadataContainerReferences);
        }
Beispiel #2
0
        public MetadataContainerReferences EnsureEssentialContainerPagesCreatedFirst(StartPage homepage)
        {
            // Main Container
            var mainContainerPage = _pagesFixturesFactory.ContainerPageFixtures()
                                    .CreatePage <MetaContainerPage>(
                FixtureConstants.PageNames.MetaContainerPage,
                ContentReference.RootPage);
            // Settings
            var settingsPage = _pagesFixturesFactory.SettingsPageFixtures()
                               .CreateSiteSettingsPage(
                FixtureConstants.PageNames.SiteSettingsPageName,
                mainContainerPage.ContentLink);

            var metadataContainerReferences = new MetadataContainerReferences(settingsPage, mainContainerPage);

            return(metadataContainerReferences);
        }