public void When_An_Exception_Is_Thrown_Terminate_The_Pipeline()
        {
            _exception = Catch.Exception(() => _commandProcessor.Send(_myCommand));

            _exception.Should().NotBeNull();
            MyUnusedCommandHandler.Shouldreceive(_myCommand).Should().BeFalse();
        }
예제 #2
0
        public void When_An_Exception_Is_Thrown_Terminate_The_Pipeline()
        {
            _exception = Catch.Exception(() => _commandProcessor.Send(_myCommand));

            Assert.NotNull(_exception);
            Assert.False(MyUnusedCommandHandler.Shouldreceive(_myCommand));
        }