routeCall

fun routeCall(caller: Caller = Caller.ANONYMOUS, tenantId: String = caller.tenantId, scope: Scope = caller.scope, queries: QueryApi? = null, commands: CommandClient? = null, requestId: String = "request-1"): RouteCall

A call of a service route as a test gives it to the handler: caller, acting in tenantId and scope, under requestId, its reads on queries and its commands through commands.

The call acts in its caller's own tenant and scope unless the test names others, as a node's call acts in the Wow-Scope target of a caller that may name one: RouteCall.caller stays the caller in its own tenant and scope. Its reads are queries, the query side before a caller is chosen (what memoryQueries gives), asked as caller in tenantId and scope; its commands are commands sending as caller, in tenantId and scope for what a request leaves out. Both by the rules a node applies to them (RouteCallQueries, RouteCallCommands).

Left at a default: the anonymous caller (Caller.ANONYMOUS), its own tenant and scope, the request id request-1, and neither queries nor commands. A handler that reads or sends then fails the test, naming what to give routeCall; an answeringCommandClient answers the commands, and memoryQueries of wow-test-query serves the reads.