then Fails With Exception Type
fun thenFailsWithExceptionType(expectedExceptionType: KClass<out Exception>): GivenWhenThenScenario<CMD, EVENT>
Define that we expect the scenario to fail with an expectedExceptionType of a specific Exception type 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
expected Exception
The exception that we expect the Decider.handle to throw when handling the _whenCommand using the _givenEvents past events