TestScript.Send Method
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
Send(IActivity, String, Int32) |
Adds an activity from the user to the bot. |
Send(String, String, Int32) |
Adds a message activity from the user to the bot. |
Send(IActivity, String, Int32)
Adds an activity from the user to the bot.
public Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.TestScript Send (Microsoft.Bot.Schema.IActivity userActivity, string path = "", int line = 0);
member this.Send : Microsoft.Bot.Schema.IActivity * string * int -> Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.TestScript
Public Function Send (userActivity As IActivity, Optional path As String = "", Optional line As Integer = 0) As TestScript
Parameters
- userActivity
- IActivity
The activity to send.
- path
- String
path.
- line
- Int32
line number.
Returns
A new TestScript object that appends a new activity from the user to the modeled exchange.
Remarks
This method does not modify the original TestScript object.
Applies to
Send(String, String, Int32)
Adds a message activity from the user to the bot.
public Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.TestScript Send (string userSays, string path = "", int line = 0);
member this.Send : string * string * int -> Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.TestScript
Public Function Send (userSays As String, Optional path As String = "", Optional line As Integer = 0) As TestScript
Parameters
- userSays
- String
The text of the message to send.
- path
- String
path.
- line
- Int32
line number.
Returns
A new TestScript object that appends a new message activity from the user to the modeled exchange.
Remarks
This method does not modify the original TestScript object.