private static void RegisterDependencies() { try { DependencyRegistrar.EnsureDependenciesRegistered(); IoC.Resolver.Register <IHttpRuntime, FakeHttpRuntime>(); IoC.Resolver.Register <IConfigSettings, IntegrationTestConfigSettings>(); LoggerConfigurator.ConfigureLogging(); } catch (Exception ex) { throw new IntegrationTesterBaseSetupFailedException("Dependency registration failed", ex); } }
void Application_Start(object sender, EventArgs e) { DependencyRegistrar.EnsureDependenciesRegistered(); LoggerConfigurator.ConfigureLogging(); EnsureAppDataFolderExists(); IoC.Resolver.Resolve <IDatabaseBootstrapper>().InitializeDatabase(); IoC.Resolver.Resolve <IMapperBootstrapper>().RegisterMappings(); RegisterWcfRoutes(); AreaRegistration.RegisterAllAreas(); RegisterRoutes(RouteTable.Routes); }