public static DependencyResolver CreateDepenencyResolver() { Framework.Core.DependencyResolver dependencyResolver = new Framework.Core.DependencyResolver(); dependencyResolver.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly()); new ApplicationServicesRegistrar(dependencyResolver).RegisterServices(); dependencyResolver.Install( new ControllersInstaller() ); return(dependencyResolver); }
public static void Setup() { Framework.Core.DependencyResolver dependencyResolver = CreateDepenencyResolver(); GlobalConfiguration.Configuration.DependencyResolver = new CastleDependencyResolver(dependencyResolver.IocContainer.Kernel); }