whenCommand
open override fun whenCommand(command: Any, header: Header, ownerId: String, block: ExpectDsl<S>.() -> Unit)
Executes a command in the context of the verified stage.
This method allows testing additional commands using the state that resulted from previous verification, enabling complex multi-step test scenarios.
Parameters
command
the command to execute
header
message header for the command
ownerId
the owner identifier for the command
block
the expectation definition using ExpectDsl