protected override void beforeEach()
        {
            theEnvelope = ObjectMother.Envelope();
            theInvoker  = MockFor <IChainInvoker>();

            theInvoker.Stub(x => x.FindChain(theEnvelope))
            .Return(null);
        }
        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);
        }