public ContinuationContext(ILogger logger, ISystemTime systemTime, IChainInvoker invoker, IOutgoingSender outgoing) { _logger = logger; _systemTime = systemTime; _invoker = invoker; _outgoing = outgoing; }
public EnvelopeContext(ILogger logger, ISystemTime systemTime, IChainInvoker invoker, IOutgoingSender outgoing, IHandlerPipeline pipeline) { this.logger = logger; _systemTime = systemTime; _invoker = invoker; Outgoing = outgoing; _pipeline = pipeline; }
public ServiceBus(IEnvelopeSender sender, IEventAggregator events, IChainInvoker invoker, ISystemTime systemTime, ISubscriptionRepository subscriptionRepository) { _sender = sender; _events = events; _invoker = invoker; _systemTime = systemTime; _subscriptionRepository = subscriptionRepository; }
protected override void beforeEach() { theEnvelope = ObjectMother.Envelope(); theInvoker = MockFor <IChainInvoker>(); theInvoker.Stub(x => x.FindChain(theEnvelope)) .Return(null); }
public ProductionDiagnosticEnvelopeContext(ILogger logger, ISystemTime systemTime, IChainInvoker invoker, IOutgoingSender outgoing, IHandlerPipeline pipeline, Envelope envelope, IExecutionLogger executionLogger) : base(logger, systemTime, invoker, outgoing, pipeline) { _envelope = envelope; _executionLogger = executionLogger; _log = new ChainExecutionLog(); _envelope.Log = _log; }
protected override void beforeEach() { theEnvelope = ObjectMother.Envelope(); theInvoker = MockFor <IChainInvoker>(); theException = new EnvelopeDeserializationException("I failed!"); theInvoker.Stub(x => x.FindChain(theEnvelope)) .Throw(theException); }
protected override void beforeEach() { theEnvelope = ObjectMother.Envelope(); theInvoker = MockFor <IChainInvoker>(); theChain = new HandlerChain(); theChain.AddToEnd(HandlerCall.For <TaskHandler>(x => x.AsyncHandle(null))); theChain.IsAsync.ShouldBeTrue(); theInvoker.Stub(x => x.FindChain(theEnvelope)) .Return(theChain); theContinuation = ClassUnderTest.Handle(theEnvelope); }
public ChainExecutionEnvelopeHandler(IChainInvoker invoker) { _invoker = invoker; }
public VerboseDiagnosticEnvelopeContext(ILogger logger, ISystemTime systemTime, IChainInvoker invoker, IOutgoingSender outgoing, IHandlerPipeline pipeline, Envelope envelope, IExecutionLogger executionLogger) : base(logger, systemTime, invoker, outgoing, pipeline, envelope, executionLogger) { }