whenCommand
open override fun whenCommand(command: Any, header: Header = DefaultHeader.empty(), ownerId: String = OwnerId.DEFAULT_OWNER_ID, spaceId: SpaceId = SpaceIdCapable.DEFAULT_SPACE_ID, 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
spaceId
the space identifier for the command
block
the expectation definition using ExpectDsl