public void because_of() { this.mutexService = new BlacklistMutexService(); this.loggingService = new StubLoggingService(); this.loggingService.Enable(); Container container = TestDependencyConfiguration.Configure(); container.Register<IMutexService>(mutexService); container.Register<ILogManager>(loggingService); var bootstrap = container.Resolve<Bootstrap>(); bootstrap.Startup(); bootstrap.Shutdown(); }
public void because_of() { this.applicationSettings = new StubApplicationSettings(); this.applicationSettings.LoggingEnabled = true; loggingService = new StubLoggingService(); var builder = new SettingsApplierInstanceBuilder(); builder.LoggingService = loggingService; builder.Create().ApplyToSession(applicationSettings); }