public void because_of() { this.messageBoxFacade = new StubMessageBoxFacade(MessageBoxResult.Cancel); settingsApplier = new MockSettingsApplier(); this.applicationSettings = new StubApplicationSettings(); this.applicationSettings.FirstRun = true; Container container = TestDependencyConfiguration.Configure(); container.Register<IApplicationSettings>(applicationSettings); container.Register<IMessageBoxFacade>(messageBoxFacade); container.Register<ISettingsApplier>(settingsApplier); var bootstrap = container.Resolve<Bootstrap>(); bootstrap.Startup(); }
public void because_of() { this.mutexService = new BlacklistMutexService(); this.settingsApplier = new MockSettingsApplier(); Container container = TestDependencyConfiguration.Configure(); container.Register<IMutexService>(mutexService); container.Register<ISettingsApplier>(settingsApplier); var bootstrap = container.Resolve<Bootstrap>(); bootstrap.Startup(); }