Esempio n. 1
0
        private void CreateWizardSteps(DynamicContentPublishingGroup item)
        {
            var itemParameter = new KeyValuePair <string, object>("item", item);

            RegisterStep(_overviewVmFactory.GetViewModelInstance(itemParameter));
            RegisterStep(_placesVmFactory.GetViewModelInstance(itemParameter));
            RegisterStep(_contentVmFactory.GetViewModelInstance(itemParameter));
            RegisterStep(_conditionsVmFactory.GetViewModelInstance(itemParameter));
        }
Esempio n. 2
0
 public ContentPublishingConditionsStepViewModel(
     IRepositoryFactory <IAppConfigRepository> appConfigRepositoryFactory,
     IRepositoryFactory <ICountryRepository> countryRepositoryFactory,
     IViewModelsFactory <ISearchCategoryViewModel> searchCategoryVmFactory,
     IRepositoryFactory <IStoreRepository> storeRepositoryFactory,
     IRepositoryFactory <IDynamicContentRepository> repositoryFactory,
     IDynamicContentEntityFactory entityFactory,
     DynamicContentPublishingGroup item)
     : base(appConfigRepositoryFactory, countryRepositoryFactory, searchCategoryVmFactory, repositoryFactory, storeRepositoryFactory, entityFactory, item)
 {
 }
Esempio n. 3
0
        public CreateContentPublishingItemViewModel(
            IViewModelsFactory <IContentPublishingOverviewStepViewModel> overviewVmFactory,
            IViewModelsFactory <IContentPublishingContentPlacesStepViewModel> placesVmFactory,
            IViewModelsFactory <IContentPublishingDynamicContentStepViewModel> contentVmFactory,
            IViewModelsFactory <IContentPublishingConditionsStepViewModel> conditionsVmFactory,
            DynamicContentPublishingGroup item)
        {
            _overviewVmFactory   = overviewVmFactory;
            _placesVmFactory     = placesVmFactory;
            _conditionsVmFactory = conditionsVmFactory;
            _contentVmFactory    = contentVmFactory;

            CreateWizardSteps(item);
        }
Esempio n. 4
0
        public static TestContentPublishingBuilder BuildDynamicContentPublishingGroup()
        {
            var contentPublishing = new DynamicContentPublishingGroup()
            {
                Name        = "default",
                Description = "default_Description",
                Priority    = 5,
                IsActive    = true,
                StartDate   = DateTime.Now.Date.AddDays(-5),
                EndDate     = DateTime.Now.Date.AddDays(5)
            };

            return(new TestContentPublishingBuilder(contentPublishing));
        }
Esempio n. 5
0
 public ContentPublishingOverviewStepViewModel(IRepositoryFactory <IDynamicContentRepository> repositoryFactory,
                                               IDynamicContentEntityFactory entityFactory, DynamicContentPublishingGroup item)
     : base(null, null, null, repositoryFactory, null, entityFactory, item)
 {
 }
Esempio n. 6
0
 private TestContentPublishingBuilder(DynamicContentPublishingGroup contentPublishingGroup)
 {
     _contentPublishingGroup = contentPublishingGroup;
 }