public void SagaNotFound_handlers_are_not_called_when_saga_is_found()
        {
            var validSagaHandler = new HandleSagaNotFoundValid();

            incomingContext.Builder.Register <IHandleSagaNotFound>(new HandleSagaNotFoundReturnsNull1(), validSagaHandler);

            Assert.That(async() => await behavior.Invoke(incomingContext, ctx => TaskEx.CompletedTask), Throws.Nothing);

            Assert.False(validSagaHandler.Handled);
        }
        public void SagaNotFound_handlers_are_not_called_when_saga_is_found()
        {
            var validSagaHandler = new HandleSagaNotFoundValid();

            incomingContext.Builder.Register<IHandleSagaNotFound>(new HandleSagaNotFoundReturnsNull1(), validSagaHandler);

            Assert.That(async () => await behavior.Invoke(incomingContext, ctx => TaskEx.CompletedTask), Throws.Nothing);

            Assert.False(validSagaHandler.Handled);
        }