thenAssert

fun thenAssert(actualEventAsserter: Consumer<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

actualEventAsserter

A Consumer that will receive the actual event that resulted from handling handling the _whenCommand using the _givenEvents past events. This Consumer is expected to manually assert the content of the actual event