thenFailsWithException

Define that we expect the scenario to fail with an expectedException of a given Exception instance when the GivenWhenThenScenario is calling the Decider.handle with the command provided in when_ and past events provided in given

This step is also known as the Assert step in Arrange, Act, Assert

Return

this GivenWhenThenScenario instance

Parameters

expectedException

The exception that we expect the Decider.handle to throw when handling the _whenCommand using the _givenEvents past events

Throws