public SectionsController(ISectionNodeService sectionNodeService, IMappingEngine mapper, ISectionTemplateService sectionTemplateService) { _sectionNodeService = sectionNodeService; _mapper = mapper; _sectionTemplateService = sectionTemplateService; }
protected override void PostFixtureSetup() { _unitOfWorkMock = new Mock <IUnitOfWork>(); _dbContextMock = new Mock <IDbContext>(); _pageTemplateServiceMock = new Mock <IPageTemplateService>(); _sectionTemplateService = new SectionTemplateService(_unitOfWorkMock.Object, _pageTemplateServiceMock.Object); _unitOfWorkMock.Setup(x => x.Context).Returns(_dbContextMock.Object); }
public SectionWidgetService(IWidgetBasePartService widgetService, ISectionGroupService sectionGroupService, ISectionContentProviderService sectionContentProviderService, ISectionTemplateService sectionTemplateService, IApplicationContext applicationContext, CMSDbContext dbContext) : base(widgetService, applicationContext, dbContext) { _sectionGroupService = sectionGroupService; _sectionContentProviderService = sectionContentProviderService; _sectionTemplateService = sectionTemplateService; }
public TemplateEngine(IUnitOfWork unitOfWork, ISectionTemplateService sectionTemplateService, IPageTemplateService pageTemplateService, IPagePropertyTemplateService propertyTemplateService) { _unitOfWork = unitOfWork; _sectionTemplateService = sectionTemplateService; _pageTemplateService = pageTemplateService; _propertyTemplateService = propertyTemplateService; }
public SectionWidgetService(IWidgetBasePartService widgetService, ISectionGroupService sectionGroupService, ISectionContentProviderService sectionContentProviderService, ISectionTemplateService sectionTemplateService, IApplicationContext applicationContext, IPluginLoader pluginLoader) : base(widgetService, applicationContext) { _sectionGroupService = sectionGroupService; _sectionContentProviderService = sectionContentProviderService; _sectionTemplateService = sectionTemplateService; _pluginLoader = pluginLoader; }
public void SetupFixture() { Container = new Container(); Container.Register(new List <IRegistry> { new CmsIocModule(), new ServicesNinjectModule(), new DataNinectModule() }); UnitOfWork = Container.Resolve <IUnitOfWork>(); SectionTemplateService = Container.Resolve <ISectionTemplateService>(); PageTemplateService = Container.Resolve <IPageTemplateService>(); SectionNodeService = Container.Resolve <ISectionNodeService>(); PageNodeService = Container.Resolve <IPageNodeService>(); PropertyTemplateService = Container.Resolve <IPagePropertyTemplateService>(); PropertyService = Container.Resolve <IPagePropertyService>(); PostFixtureSetup(); }
public void SetupFixture() { _container = new Container(); _container.Register(new List <IRegistry> { new CmsIocModule(), new ServicesNinjectModule(), new DataNinectModule() }); _unitOfWork = _container.Resolve <IUnitOfWork>(); _dbContext = _container.Resolve <IDbContext>(); _sectionTemplateService = _container.Resolve <ISectionTemplateService>(); _pageTemplateService = _container.Resolve <IPageTemplateService>(); _templateEngine = _container.Resolve <ITemplateEngine>(); _assembly = Assembly.GetExecutingAssembly(); DeleteAllSectionTemplates(); }
public SectionNodeService(IUnitOfWork unitOfWork, ISectionTemplateService sectionTemplateService, IPageNodeService pageNodeService) { _unitOfWork = unitOfWork; _sectionTemplateService = sectionTemplateService; _pageNodeService = pageNodeService; }