private void AddSagaEvent(Type handler, Type msg, EventHandlerSubscription sub) { var invoker = new HandlerTypeInvoker(handler, _container, _auditor, _error); SagaExecutor executor = null; if (msg.CanStartSaga(handler)) { executor = new SagaStarterExecutor(invoker, _container); } else { executor = new SagaExecutor(invoker, _container); } executor.UseCustomRepositories = _host.UseUserDefinedSagaRepos; sub.Add(executor); }
public SagaStarterExecutorTests() { _sut = new SagaStarterExecutor(_invoker, _di); }