コード例 #1
0
            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();
            }
コード例 #2
0
            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);
            }