Esempio n. 1
0
 protected override void PostFixtureSetup()
 {
     _unitOfWorkMock = new Mock <IUnitOfWork>();
     _dbContextMock  = new Mock <IDbContext>();
     _unitOfWorkMock.Setup(x => x.Context).Returns(_dbContextMock.Object);
     _propertyServiceMock     = new Mock <IPagePropertyService>();
     _propertyTemplateService = new PagePropertyTemplateService(_unitOfWorkMock.Object, _propertyServiceMock.Object);
 }
Esempio n. 2
0
 public TemplateEngine(IUnitOfWork unitOfWork,
                       ISectionTemplateService sectionTemplateService,
                       IPageTemplateService pageTemplateService,
                       IPagePropertyTemplateService propertyTemplateService)
 {
     _unitOfWork              = unitOfWork;
     _sectionTemplateService  = sectionTemplateService;
     _pageTemplateService     = pageTemplateService;
     _propertyTemplateService = propertyTemplateService;
 }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
 public PageTemplateService(IUnitOfWork unitOfWork, IPageNodeService pageNodeService, IPagePropertyTemplateService propertyTemplateService)
 {
     _unitOfWork              = unitOfWork;
     _pageNodeService         = pageNodeService;
     _propertyTemplateService = propertyTemplateService;
 }