Inheritance: ServiceContainer
Example #1
0
        public virtual void RegisterCurrentDependencyResolver()
        {
            MainContainer container = new MainContainer();
            container.RegisterControllers(typeof(BaseController).Assembly);
            container.RegisterServices();
            container.EnableMvc();

            DependencyResolver.SetResolver(new LightInjectMvcDependencyResolver(container));
        }
 public MainContainerTests()
 {
     container = new MainContainer();
     container.RegisterServices();
 }