expectStateAggregate

open override fun expectStateAggregate(expected: StateAggregate<S>.() -> Unit): ExpectDsl<S>

Defines expectations for the aggregate's complete state including metadata.

This method verifies the aggregate's state object along with its version, aggregate ID, and other aggregate-level properties.

Return

this ExpectDsl instance for method chaining

Parameters

expected

lambda function defining the expected state aggregate properties