public SagaTestSubjectImpl(ISagaRepository <TSaga> sagaRepository) { _sagaRepository = sagaRepository; _received = new ReceivedMessageListImpl(); _created = new SagaListImpl <TSaga>(); _sagas = new SagaListImpl <TSaga>(); }
public EndpointTestDecorator(IEndpoint endpoint, EndpointTestScenarioImpl scenario) { _endpoint = endpoint; _scenario = scenario; _sent = new SentMessageListImpl(); _received = new ReceivedMessageListImpl(); }
public SagaRepositoryTestDecorator(ISagaRepository <TSaga> sagaRepository, ReceivedMessageListImpl received, SagaListImpl <TSaga> created, SagaListImpl <TSaga> sagas) { _sagaRepository = sagaRepository; _received = received; _created = created; _sagas = sagas; }
public StateMachineSagaTestSubjectImpl(ISagaRepository <TSaga> sagaRepository, TStateMachine stateMachine, Action <StateMachineSagaRepositoryConfigurator <TSaga> > configureCorrelation) { _sagaRepository = sagaRepository; _stateMachine = stateMachine; _configureCorrelation = configureCorrelation; _received = new ReceivedMessageListImpl(); _created = new SagaListImpl <TSaga>(); _sagas = new SagaListImpl <TSaga>(); }
public EndpointTestScenarioImpl(IEndpointFactory endpointFactory) { _received = new ReceivedMessageListImpl(); _sent = new SentMessageListImpl(); _skipped = new ReceivedMessageListImpl(); _endpoints = new Dictionary<Uri, EndpointTestDecorator>(); EndpointFactory = new EndpointFactoryTestDecorator(endpointFactory, this); _endpointCache = new EndpointCache(EndpointFactory); EndpointCache = new EndpointCacheProxy(_endpointCache); ServiceBusFactory.ConfigureDefaultSettings(x => { x.SetEndpointCache(EndpointCache); x.SetConcurrentConsumerLimit(4); x.SetConcurrentReceiverLimit(1); x.SetReceiveTimeout(50.Milliseconds()); x.EnableAutoStart(); }); }
protected EndpointTestScenarioImpl(IEndpointFactory endpointFactory) { _received = new ReceivedMessageListImpl(); _sent = new SentMessageListImpl(); _skipped = new ReceivedMessageListImpl(); _published = new PublishedMessageListImpl(); _endpoints = new Dictionary <Uri, EndpointTestDecorator>(); EndpointFactory = new EndpointFactoryTestDecorator(endpointFactory, this); _endpointCache = new EndpointCache(EndpointFactory); EndpointCache = new EndpointCacheProxy(_endpointCache); ServiceBusFactory.ConfigureDefaultSettings(x => { x.SetEndpointCache(EndpointCache); x.SetConcurrentConsumerLimit(4); x.SetConcurrentReceiverLimit(1); x.SetReceiveTimeout(50.Milliseconds()); x.EnableAutoStart(); }); }
public ConsumerFactoryTestDecorator(IConsumerFactory <TConsumer> consumerFactory, ReceivedMessageListImpl received) { _consumerFactory = consumerFactory; _received = received; }
public HandlerTestSubjectImpl(Action <IConsumeContext <TSubject>, TSubject> handler) { _handler = handler; _received = new ReceivedMessageListImpl <TSubject>(); }
public ConsumerTestSubjectImpl(IConsumerFactory <TSubject> consumerFactory) { _consumerFactory = consumerFactory; _received = new ReceivedMessageListImpl(); }