It can sometimes be hard to figure out whether your unit tests for SagaFixtures fails due to an exception happening inside a Rebus Saga.
To help creating leaner unit test I've added an extension method to throw exceptions happening inside the the Saga. I've found myself copying this extension into all my Rebus projects, and thought somebody else could use it as well. Cheers 🍻
Rebus is MIT-licensed. The code submitted in this pull request needs to carry the MIT license too. By leaving this text in, I hereby acknowledge that the code submitted in the pull request has the MIT license and can be merged with the Rebus codebase.
It can sometimes be hard to figure out whether your unit tests for
SagaFixtures
fails due to an exception happening inside a Rebus Saga.To help creating leaner unit test I've added an extension method to throw exceptions happening inside the the Saga. I've found myself copying this extension into all my Rebus projects, and thought somebody else could use it as well. Cheers 🍻
Example of how it is used:
Rebus is MIT-licensed. The code submitted in this pull request needs to carry the MIT license too. By leaving this text in, I hereby acknowledge that the code submitted in the pull request has the MIT license and can be merged with the Rebus codebase.