private MetadataContainerReferences CreateMetaDataPages() { var menuContainerPage = _pagesFixturesFactory.ContainerPageFixtures() .CreatePage <MenuContainerPage>( FixtureConstants.PageNames.MenuContainer, _metadataContainerReferences.MetaContainerPage.ContentLink); Guard.ValidateObject(menuContainerPage); _metadataContainerReferences.MenuContainerPage = menuContainerPage; return(_metadataContainerReferences); }
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); }