Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public CmsModule()
 {
     _container = new Container();
 }