then_

fun then_(expectedEvent: EVENT?): GivenWhenThenScenario<CMD, EVENT>

Define the expected event outcome when 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

expectedEvent

The event we expect to be returned from the Decider.handle method as a result of handling the _whenCommand using the _givenEvents past events

Throws