tock / ai.tock.bot.test / BotBusMock / withMessage

withMessage

open fun withMessage(connectorType: ConnectorType, messageProvider: () -> ConnectorMessage): BotBus (source)

Adds the specified ConnectorMessage to the bus context if the targetConnectorType is compatible.

open fun withMessage(connectorType: ConnectorType, connectorId: String, messageProvider: () -> ConnectorMessage): BotBus (source)

Adds the specified ConnectorMessage to the bus context if the targetConnectorType and connectorId is compatible.