Example #1
0
        protected override void PostFixtureSetup()
        {
            _unitOfWorkMock = new Mock <IUnitOfWork>();
            _dbContextMock  = new Mock <IDbContext>();
            _unitOfWorkMock.Setup(x => x.Context).Returns(_dbContextMock.Object);

            _propertyService = new PagePropertyService(_unitOfWorkMock.Object);
        }
Example #2
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();
        }
Example #3
0
 public PagePropertyTemplateService(IUnitOfWork unitOfWork, IPagePropertyService propertyService)
 {
     _unitOfWork      = unitOfWork;
     _propertyService = propertyService;
 }