RegisterServices() public method

public RegisterServices ( ) : void
return void
Exemplo n.º 1
0
        public virtual void RegisterCurrentDependencyResolver()
        {
            MainContainer container = new MainContainer();
            container.RegisterControllers(typeof(BaseController).Assembly);
            container.RegisterServices();
            container.EnableMvc();

            DependencyResolver.SetResolver(new LightInjectMvcDependencyResolver(container));
        }
Exemplo n.º 2
0
 public MainContainerTests()
 {
     container = new MainContainer();
     container.RegisterServices();
 }