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 void CreateContentPages(MetadataContainerReferences metaDataReferences) { Guard.ValidateObject(metaDataReferences); // Search var searchPage = _genericPageFixtures.CreatePage <SearchPage>( FixtureConstants.PageNames.SearchPage, _homepage.ContentLink); // Configure Search Page _pagesFixturesFactory.SettingsPageFixtures() .UpdateSettingsPage(_metadataContainerReferences, searchPage.PageLink); // 404 _genericPageFixtures.CreatePage <PageNotFoundPage>(FixtureConstants.PageNames.PageNotFound, _homepage.ContentLink); // Content Pages var genericPage = _pagesFixturesFactory.GenericPagesFixtures().CreatePage <ContentPage>("Dummy Page 1", _homepage.ContentLink); _pagesFixturesFactory.MenuPageFixtures() .CreateDummyMenuPages( metaDataReferences.MenuContainerPage, genericPage); _homepageFixtures.PopulateHomePage(_homepage, metaDataReferences); }