public void SetUp()
 {
     _fixture = new ModuleTestHarness();
     _fixture.ClearMessages();
     _fixture.Container.Dispose();
     _lifetimeScopeEndingMessage = _fixture.GetSingleMessageOrDefault <LifetimeScopeEndingMessage>();
 }
 public void SetUp()
 {
     _fixture = new ModuleTestHarness(builder => builder.RegisterType <object>());
     _fixture.ClearMessages();
     _fixture.Container.Resolve <object>();
     _resolveOperationBeginning = _fixture.GetSingleMessageOrDefault <ResolveOperationBeginningMessage>();
     _resolveOperationEnding    = _fixture.GetSingleMessageOrDefault <ResolveOperationEndingMessage>();
 }
            public void SetUp()
            {
                _registration = RegistrationBuilder.ForType <object>().SingleInstance().CreateRegistration();
                _fixture      = new ModuleTestHarness(b => b.RegisterComponent(_registration));
                var nestedScope = _fixture.Container.BeginLifetimeScope();

                _fixture.ClearMessages();
                nestedScope.Resolve <object>();

                _fixture.GetSingleMessageOrDefault(out _instanceLookupBeginningMessage);
            }
            public void SetUp()
            {
                _componentRegistration = RegistrationBuilder
                                         .ForType(typeof(string))
                                         .CreateRegistration();

                _fixture = new ModuleTestHarness();

                _fixture.ClearMessages();
                _fixture.Container.ComponentRegistry.Register(_componentRegistration);

                _message = _fixture.GetSingleMessageOrDefault <ComponentAddedMessage>();
            }
            public void SetUp()
            {
                _registration = RegistrationBuilder.ForType <object>().CreateRegistration();
                _fixture      = new ModuleTestHarness(b => b.RegisterComponent(_registration));

                _fixture.ClearMessages();
                _fixture.Container.Resolve <object>();

                _fixture.GetSingleMessageOrDefault(out _resolveOperationBeginningMessage);
                _fixture.GetSingleMessageOrDefault(out _instanceLookupBeginningMessage);
                _fixture.GetSingleMessageOrDefault(out _instanceLookupEndingMessage);
                _fixture.GetSingleMessageOrDefault(out _instanceLookupCompletionBeginningMessage);
                _fixture.GetSingleMessageOrDefault(out _instanceLookupCompletionEndingMessage);
            }
 public void SetUp()
 {
     _fixture = new ModuleTestHarness();
     _profilerConnectedMessage  = _fixture.GetSingleMessageOrDefault <ProfilerConnectedMessage>();
     _rootScopeBeginningMessage = _fixture.GetSingleMessageOrDefault <LifetimeScopeBeginningMessage>();
 }