public FixturesSetup(IWebsiteDependencies dependencies, IPageTypeServices pageTypeServices) { Guard.ValidateObject(dependencies); Guard.ValidateObject(pageTypeServices); _blockFixturesFactory = new BlockFixturesFactory(dependencies, pageTypeServices); _contentHelper = new ContentHelper(_blockFixturesFactory); _homepageFixtures = new HomePageFixtures(dependencies, pageTypeServices, _blockFixturesFactory, _contentHelper); _homepage = SetupInitialHomepage(dependencies, pageTypeServices); _pagesFixturesFactory = new PagesFixturesFactory( dependencies, pageTypeServices, _homepage, _contentHelper, _blockFixturesFactory); _metaDataFixturesInstaller = new MetaDataFixturesInstaller(_pagesFixturesFactory); _genericPageFixtures = _pagesFixturesFactory.GenericPagesFixtures(); Guard.ValidateObject(_genericPageFixtures); Guard.ValidateObject(_metaDataFixturesInstaller); Guard.ValidateObject(_pagesFixturesFactory); Guard.ValidateObject(_homepageFixtures); }
private StartPage SetupInitialHomepage( IWebsiteDependencies dependencies, IPageTypeServices episerverContentRepositories) { var tempHomepage = _homepageFixtures.GetOrCreateBlankHomePage(FixtureConstants.PageNames.HomePage); var tempPagesFixturesFactory = new PagesFixturesFactory( dependencies, episerverContentRepositories, tempHomepage, _contentHelper, _blockFixturesFactory); var tempMetaDataFixturesInstaller = new MetaDataFixturesInstaller(tempPagesFixturesFactory); _metadataContainerReferences = tempMetaDataFixturesInstaller.EnsureEssentialContainerPagesCreatedFirst(tempHomepage); return(_homepageFixtures.EnsureSettingsAndResourcePagesExist(tempHomepage, _metadataContainerReferences)); }