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); }
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 PagePropertyTemplateService(IUnitOfWork unitOfWork, IPagePropertyService propertyService) { _unitOfWork = unitOfWork; _propertyService = propertyService; }