tock / ai.tock.bot.test / startNewBusMock

startNewBusMock

fun BotDefinition.startNewBusMock(testContext: TestContext = currentTestContext, story: StoryDefinition = testContext.defaultStoryDefinition(this), connectorType: ConnectorType = testContext.defaultConnectorType(), locale: Locale = testContext.defaultLocale(), userId: PlayerId = testContext.defaultPlayerId()): BotBusMock (source)

Provides a mock initialized with the specified StoryDefinition and starts the story.