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>(); _unitOfWorkMock.Setup(x => x.Context).Returns(_dbContextMock.Object); _sectionTemplateServiceMock = new Mock <ISectionTemplateService>(); _pageNodeServiceMock = new Mock <IPageNodeService>(); _sectionNodeService = new SectionNodeService(_unitOfWorkMock.Object, _sectionTemplateServiceMock.Object, _pageNodeServiceMock.Object); }
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 CmsModelHelper(ISectionNodeService sectionNodeService) { _sectionNodeService = sectionNodeService; }
public TrashController(ISectionNodeService sectionNodeService, IMappingEngine mapper) { _sectionNodeService = sectionNodeService; _mapper = mapper; }
public CmsActionInvoker(ISectionNodeService sectionNodeService, IPageNodeService pageNodeService) { _sectionNodeService = sectionNodeService; _pageNodeService = pageNodeService; }