expect

open override fun expect(expected: ExpectedResult<S>.() -> Unit): ExpectDsl<S>

Defines expectations for the complete test result.

This method allows specifying comprehensive expectations about the aggregate's final state, events produced, and any errors that occurred during command processing.

Return

this ExpectDsl instance for method chaining

Parameters

expected

lambda function defining the expected result properties