expectCommandEnvelope

inline fun <reified C : Any> expectCommandEnvelope(noinline check: Command<C>.() -> Unit = {}): Command<C>

The handlers derived exactly one command, a C, which check checks with its envelope: the aggregate it goes to, its ids, scope, request facts and operator beside its body (Command.body), as an aggregate's Expectations.expectEventEnvelope checks its event's.


fun <C : Any> expectCommandEnvelope(type: KClass<C>, check: Command<C>.() -> Unit = {}): Command<C>

The handlers derived exactly one command, of type, which check checks with its envelope.