ExpectedResult
data class ExpectedResult<S : Any>(val exchange: ServerCommandExchange<*>, val stateAggregate: StateAggregate<S>, val domainEventStream: DomainEventStream? = null, val error: Throwable? = null)
Encapsulates the complete result of an aggregate command execution for testing purposes.
This data class holds all the information needed to validate the outcome of a command execution, including the command exchange, resulting aggregate state, generated events, and any errors that occurred.
Parameters
S
the type of the aggregate state
Constructors
Link copied to clipboard
constructor(exchange: ServerCommandExchange<*>, stateAggregate: StateAggregate<S>, domainEventStream: DomainEventStream? = null, error: Throwable? = null)