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

            kernel.Load(Assembly.GetExecutingAssembly());
            _staticPageManager = kernel.Get <IStaticPageManager>();
        }
Ejemplo 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>();
        }
Ejemplo n.º 3
0
        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/"
            };
        }
Ejemplo 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>();
        }