public void SetUp() { _iocContainer = MockRepository.GenerateMock<IIocContainer>(); #region extension types var conditionLogType = typeof(TestExtensions.ConditionLog); var sessionLogType = typeof(TestExtensions.SessionLog); var preEventLogType = typeof(TestExtensions.PreEventLog); var postEventLogType = typeof(TestExtensions.PostEventLog); var exceptionHandlerLogType = typeof(TestExtensions.ExceptionHandlerLog); var recklessLogType = typeof(TestExtensions.RecklessLog); #endregion #region ioc registration _iocContainer.Expect(x => x.Resolve(conditionLogType)) .Return(new TestExtensions.ConditionLog()); _iocContainer.Expect(x => x.Resolve(sessionLogType)) .Return(new TestExtensions.SessionLog()); _iocContainer.Expect(x => x.Resolve(preEventLogType)) .Return(new TestExtensions.PreEventLog()); _iocContainer.Expect(x => x.Resolve(postEventLogType)) .Return(new TestExtensions.PostEventLog()); _iocContainer.Expect(x => x.Resolve(exceptionHandlerLogType)) .Return(new TestExtensions.ExceptionHandlerLog()); _iocContainer.Expect(x => x.Resolve(recklessLogType)) .Return(new TestExtensions.RecklessLog()); #endregion var extensions = new SimpleList<Type> { conditionLogType, sessionLogType, preEventLogType, postEventLogType, exceptionHandlerLogType, recklessLogType }; var executionManager = new ExtendedExecutionManager(_iocContainer, extensions); _executioner = executionManager.ToNewExecutioner(); }