protected override void ConfigureInputQueueEndpoint(IReceiveEndpointConfigurator configurator)
        {
            _clearingApi = Substitute.For<IClearingApi>();
            _machine = new ClearingSaga(_clearingApi);
            _repository = new InMemorySagaRepository<ClearingSagaState>();

            configurator.StateMachineSaga(_machine, _repository);
        }
예제 #2
0
        protected override void ConfigureInputQueueEndpoint(IReceiveEndpointConfigurator configurator)
        {
            _clearingApi = Substitute.For <IClearingApi>();
            _machine     = new ClearingSaga(_clearingApi);
            _repository  = new InMemorySagaRepository <ClearingSagaState>();

            configurator.StateMachineSaga(_machine, _repository);
        }
 private void ConfigureSaga()
 {
     _machine    = new ClearingSaga(new ClearingApiAdaptor());
     _repository = new Lazy <ISagaRepository <ClearingSagaState> >(() => new InMemorySagaRepository <ClearingSagaState>());
 }
 private void ConfigureSaga()
 {
     _machine = new ClearingSaga(new ClearingApiAdaptor());
     _repository = new Lazy<ISagaRepository<ClearingSagaState>>(() => new InMemorySagaRepository<ClearingSagaState>());
 }