Exemplo n.º 1
0
            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();
            }
Exemplo n.º 2
0
            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();
            }