-
public final class BotBusMockInitializersKt
-
-
Method Summary
Modifier and Type Method Description final BotBusMockstartNewBusMock(BotDefinition $self, TestContext testContext, StoryDefinition story, ConnectorType connectorType, Locale locale, PlayerId userId)Provides a mock initialized with the specified StoryDefinition and starts the story. final BotBusMocknewBusMock(BotDefinition $self, TestContext testContext, StoryDefinition story, ConnectorType connectorType, Locale locale, PlayerId userId)Provides a mock initialized with the specified StoryDefinition. final BotBusMockContextnewBusMockContext(BotDefinition $self, TestContext testContext, StoryDefinition story, ConnectorType connectorType, Locale locale, PlayerId userId, PlayerId botId, Action action, UserInterfaceType userInterfaceType, UserPreferences userPreferences)Provides a mock context initialized with the specified StoryDefinition. final BotBusMockstartBusMock(TestContext testContext)Provides a mock context initialized with the specified TestContext and runs the story. final BotBusMockbusMock(TestContext testContext)Provides a mock context initialized with the specified TestContext. -
-
Method Detail
-
startNewBusMock
final BotBusMock startNewBusMock(BotDefinition $self, TestContext testContext, StoryDefinition story, ConnectorType connectorType, Locale locale, PlayerId userId)
Provides a mock initialized with the specified StoryDefinition and starts the story.
-
newBusMock
final BotBusMock newBusMock(BotDefinition $self, TestContext testContext, StoryDefinition story, ConnectorType connectorType, Locale locale, PlayerId userId)
Provides a mock initialized with the specified StoryDefinition.
-
newBusMockContext
final BotBusMockContext newBusMockContext(BotDefinition $self, TestContext testContext, StoryDefinition story, ConnectorType connectorType, Locale locale, PlayerId userId, PlayerId botId, Action action, UserInterfaceType userInterfaceType, UserPreferences userPreferences)
Provides a mock context initialized with the specified StoryDefinition.
-
startBusMock
final BotBusMock startBusMock(TestContext testContext)
Provides a mock context initialized with the specified TestContext and runs the story.
-
busMock
final BotBusMock busMock(TestContext testContext)
Provides a mock context initialized with the specified TestContext.
-
-
-
-