public PageDefinitionUpdater(
     IPageDefinitionRepository pageDefinitionRepository, 
     ITabDefinitionRepository tabDefinitionRepository,
     PageDefinitionTypeMapper pageDefinitionTypeMapper)
 {
     this.pageDefinitionRepository = pageDefinitionRepository;
     this.tabDefinitionRepository = tabDefinitionRepository;
     this.pageDefinitionTypeMapper = pageDefinitionTypeMapper;
 }
 public PageDefinitionSpecificPropertySettingsUpdater(
     Func <IPropertySettingsRepository> propertySettingsRepositoryMethod,
     IGlobalPropertySettingsLocator globalPropertySettingsLocator,
     IPageDefinitionRepository pageDefinitionRepository)
 {
     this._propertySettingsRepositoryMethod = propertySettingsRepositoryMethod;
     this.globalPropertySettingsLocator     = globalPropertySettingsLocator;
     this.pageDefinitionRepository          = pageDefinitionRepository;
 }
 public PageDefinitionSpecificPropertySettingsUpdater(
     IPropertySettingsRepository propertySettingsRepository,
     IGlobalPropertySettingsLocator globalPropertySettingsLocator,
     IPageDefinitionRepository pageDefinitionRepository)
 {
     this.propertySettingsRepository = propertySettingsRepository;
     this.globalPropertySettingsLocator = globalPropertySettingsLocator;
     this.pageDefinitionRepository = pageDefinitionRepository;
 }
        public InMemoryPageTypeRepository(IPageDefinitionRepository pageDefinitionRepository)
        {
            this.pageDefinitionRepository = pageDefinitionRepository;
            Mapper.Configuration.CreateMap<IPageType, FakePageType>();
            Mapper.Configuration.CreateMap<FakePageType, IPageType>();
            Mapper.Configuration.CreateMap<IPageType, IPageType>();

            nextId = 1;
            pageTypes = new List<IPageType>();
        }
 public PageDefinitionUpdater(
     IPageDefinitionRepository pageDefinitionRepository, 
     ITabDefinitionRepository tabDefinitionRepository,
     PageDefinitionTypeMapper pageDefinitionTypeMapper)
 {
     this.pageDefinitionRepository = pageDefinitionRepository;
     this.tabDefinitionRepository = tabDefinitionRepository;
     this.pageDefinitionTypeMapper = pageDefinitionTypeMapper;
     newlyCreatedPageDefinitions = new List<string>();
 }
 public PageDefinitionSpecificPropertySettingsUpdater(
     Func<IPropertySettingsRepository> propertySettingsRepositoryMethod,
     IGlobalPropertySettingsLocator globalPropertySettingsLocator,
     IPageDefinitionRepository pageDefinitionRepository)
 {
     this._propertySettingsRepositoryMethod = propertySettingsRepositoryMethod;
     this.globalPropertySettingsLocator = globalPropertySettingsLocator;
     this.pageDefinitionRepository = pageDefinitionRepository;
     updatedPropertySettingsCacheKeys = new List<string>();
 }
Esempio n. 7
0
 public PageDefinitionUpdater(
     IPageDefinitionRepository pageDefinitionRepository,
     ITabDefinitionRepository tabDefinitionRepository,
     PageDefinitionTypeMapper pageDefinitionTypeMapper)
 {
     this.pageDefinitionRepository = pageDefinitionRepository;
     this.tabDefinitionRepository  = tabDefinitionRepository;
     this.pageDefinitionTypeMapper = pageDefinitionTypeMapper;
     newlyCreatedPageDefinitions   = new List <string>();
 }
        public InMemoryPageTypeRepository(IPageDefinitionRepository pageDefinitionRepository)
        {
            this.pageDefinitionRepository = pageDefinitionRepository;
            Mapper.Configuration.CreateMap <IPageType, FakePageType>();
            Mapper.Configuration.CreateMap <FakePageType, IPageType>();
            Mapper.Configuration.CreateMap <IPageType, IPageType>();

            nextId    = 1;
            pageTypes = new List <IPageType>();
        }
 public MigrationContext(
     IPageTypeRepository pageTypeRepository,
     IPageDefinitionRepository pageDefinitionRepository,
     IPageDefinitionTypeRepository pageDefinitionTypeRepository,
     ITabDefinitionRepository tabDefinitionRepository,
     INativePageDefinitionsMap nativePageDefinitionsMap)
 {
     PageTypeRepository           = pageTypeRepository;
     PageDefinitionRepository     = pageDefinitionRepository;
     PageDefinitionTypeRepository = pageDefinitionTypeRepository;
     TabDefinitionRepository      = tabDefinitionRepository;
     NativePageDefinitionsMap     = nativePageDefinitionsMap;
 }
 public MigrationContext(
     IPageTypeRepository pageTypeRepository, 
     IPageDefinitionRepository pageDefinitionRepository,
     IPageDefinitionTypeRepository pageDefinitionTypeRepository,
     ITabDefinitionRepository tabDefinitionRepository,
     INativePageDefinitionsMap nativePageDefinitionsMap)
 {
     PageTypeRepository = pageTypeRepository;
     PageDefinitionRepository = pageDefinitionRepository;
     PageDefinitionTypeRepository = pageDefinitionTypeRepository;
     TabDefinitionRepository = tabDefinitionRepository;
     NativePageDefinitionsMap = nativePageDefinitionsMap;
 }
 public FakePageType(IPageDefinitionRepository pageDefinitionRepository)
 {
     var template = new PageType();
     AllowedPageTypes = template.AllowedPageTypes;
     DefaultArchivePageLink = template.DefaultArchivePageLink;
     DefaultChildOrderRule = template.DefaultChildOrderRule;
     DefaultPageName = template.DefaultPageName;
     DefaultPeerOrder = template.DefaultPeerOrder;
     DefaultStartPublishOffset = template.DefaultStartPublishOffset;
     DefaultStopPublishOffset = template.DefaultStopPublishOffset;
     DefaultVisibleInMenu = template.DefaultVisibleInMenu;
     this.pageDefinitionRepository = pageDefinitionRepository;
     Description = template.Description;
     IsAvailable = template.IsAvailable;
     Name = template.Name;
     SortOrder = template.SortOrder;
     Defaults = new PageTypeDefault();
 }
Esempio n. 12
0
        public FakePageType(IPageDefinitionRepository pageDefinitionRepository)
        {
            var template = new PageType();

            AllowedPageTypes              = template.AllowedPageTypes;
            DefaultArchivePageLink        = template.DefaultArchivePageLink;
            DefaultChildOrderRule         = template.DefaultChildOrderRule;
            DefaultPageName               = template.DefaultPageName;
            DefaultPeerOrder              = template.DefaultPeerOrder;
            DefaultStartPublishOffset     = template.DefaultStartPublishOffset;
            DefaultStopPublishOffset      = template.DefaultStopPublishOffset;
            DefaultVisibleInMenu          = template.DefaultVisibleInMenu;
            this.pageDefinitionRepository = pageDefinitionRepository;
            Description = template.Description;
            IsAvailable = template.IsAvailable;
            Name        = template.Name;
            SortOrder   = template.SortOrder;
            Defaults    = new PageTypeDefault();
        }