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 CmsModule() { _container = new Container(); }