expectState
Defines expectations for the aggregate's state object.
This method verifies the business state of the aggregate after command processing, allowing checks on the domain-specific properties of the state.
Return
this ExpectDsl instance for method chaining
Parameters
expected
lambda function defining the expected state properties
Defines expectations for the aggregate's state using a Consumer.
This is a convenience overload that accepts a Java Consumer for defining state expectations, useful when integrating with Java-based test code.
Return
this ExpectDsl instance for method chaining
Parameters
expected
Consumer defining the expected state properties