Esempio n. 1
0
        public AccountController()
        {
            var kernel = new StandardKernel(new BllBindings());

            kernel.Load(Assembly.GetExecutingAssembly());
            _staticPageManager = kernel.Get <IStaticPageManager>();
        }
Esempio n. 2
0
        public AdminController()
        {
            var kernel = new StandardKernel(new BllBindings());

            kernel.Load(Assembly.GetExecutingAssembly());
            //_postManager = kernel.Get<IPostManager>();
            _inquiryManager    = kernel.Get <IInquiryManager>();
            _staticPageManager = kernel.Get <IStaticPageManager>();
        }
        public StaticPageManagerTests()
        {
            var kernel = new StandardKernel(new BllBindings());

            kernel.Load(Assembly.GetExecutingAssembly());
            _staticPageManager = kernel.Get <IStaticPageManager>();
            _testStaticPage    = new StaticPage {
                Title = "TESTstaticPAGEfromMgr", Content = "MgrTest", IsLive = true, ImagePath = "Blah/"
            };
        }
Esempio n. 4
0
        //private readonly ICategoryManager _categoryManager;
        //private readonly ITagManager _tagManager;


        public HomeController()
        {
            var kernel = new StandardKernel(new BllBindings());

            kernel.Load(Assembly.GetExecutingAssembly());
            _blogManager       = kernel.Get <IBlogManager>();
            _staticPageManager = kernel.Get <IStaticPageManager>();
            _postManager       = kernel.Get <IPostManager>();
            _inquiryManager    = kernel.Get <IInquiryManager>();
            //_categoryManager = kernel.Get<ICategoryManager>();
            //_tagManager = kernel.Get<ITagManager>();
        }