TestFlow Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TestFlow(TestAdapter, BotCallbackHandler) |
Initializes a new instance of the TestFlow class. |
TestFlow(TestAdapter, IBot) |
Initializes a new instance of the TestFlow class. |
TestFlow(Func<Task>, TestFlow) |
Initializes a new instance of the TestFlow class from an existing flow. |
TestFlow(Task, TestFlow) |
Initializes a new instance of the TestFlow class from an existing flow. |
TestFlow(TestAdapter, BotCallbackHandler)
Initializes a new instance of the TestFlow class.
public TestFlow (Microsoft.Bot.Builder.Adapters.TestAdapter adapter, Microsoft.Bot.Builder.BotCallbackHandler callback = default);
new Microsoft.Bot.Builder.Adapters.TestFlow : Microsoft.Bot.Builder.Adapters.TestAdapter * Microsoft.Bot.Builder.BotCallbackHandler -> Microsoft.Bot.Builder.Adapters.TestFlow
Public Sub New (adapter As TestAdapter, Optional callback As BotCallbackHandler = Nothing)
Parameters
- adapter
- TestAdapter
The test adapter to use.
- callback
- BotCallbackHandler
The bot turn processing logic to test.
Applies to
TestFlow(TestAdapter, IBot)
Initializes a new instance of the TestFlow class.
public TestFlow (Microsoft.Bot.Builder.Adapters.TestAdapter adapter, Microsoft.Bot.Builder.IBot bot);
new Microsoft.Bot.Builder.Adapters.TestFlow : Microsoft.Bot.Builder.Adapters.TestAdapter * Microsoft.Bot.Builder.IBot -> Microsoft.Bot.Builder.Adapters.TestFlow
Public Sub New (adapter As TestAdapter, bot As IBot)
Parameters
- adapter
- TestAdapter
The test adapter to use.
- bot
- IBot
The bot containing the turn processing logic to test.
Applies to
TestFlow(Func<Task>, TestFlow)
Initializes a new instance of the TestFlow class from an existing flow.
public TestFlow (Func<System.Threading.Tasks.Task> getTask, Microsoft.Bot.Builder.Adapters.TestFlow flow);
new Microsoft.Bot.Builder.Adapters.TestFlow : Func<System.Threading.Tasks.Task> * Microsoft.Bot.Builder.Adapters.TestFlow -> Microsoft.Bot.Builder.Adapters.TestFlow
Public Sub New (getTask As Func(Of Task), flow As TestFlow)
Parameters
- flow
- TestFlow
The flow to build up from. This provides the test adapter to use, the bot turn processing logic to test, and a set of exchanges to model and test.
Applies to
TestFlow(Task, TestFlow)
Initializes a new instance of the TestFlow class from an existing flow.
public TestFlow (System.Threading.Tasks.Task task, Microsoft.Bot.Builder.Adapters.TestFlow flow);
new Microsoft.Bot.Builder.Adapters.TestFlow : System.Threading.Tasks.Task * Microsoft.Bot.Builder.Adapters.TestFlow -> Microsoft.Bot.Builder.Adapters.TestFlow
Public Sub New (task As Task, flow As TestFlow)
Parameters
- task
- Task
The exchange to add to the exchanges in the existing flow.
- flow
- TestFlow
The flow to build up from. This provides the test adapter to use, the bot turn processing logic to test, and a set of exchanges to model and test.