expectEventEnvelope
inline fun <reified E : Any> expectEventEnvelope(noinline check: EventEnvelope<E>.() -> Unit = {}): EventEnvelope<E>
The command committed exactly one event, an E, which check checks with its envelope: the stream's aggregate, version, command and request ids, request facts, operator and commit time beside the event itself (EventEnvelope.body).
fun <E : Any> expectEventEnvelope(type: KClass<E>, check: EventEnvelope<E>.() -> Unit = {}): EventEnvelope<E>
The command committed exactly one event, of type, which check checks with its envelope.