DialogTestClient Constructors

Definition

Overloads

DialogTestClient(TestAdapter, Dialog, Object, IEnumerable<IMiddleware>, ConversationState)

Initializes a new instance of the DialogTestClient class.

DialogTestClient(String, Dialog, Object, IEnumerable<IMiddleware>, ConversationState)

Initializes a new instance of the DialogTestClient class.

DialogTestClient(TestAdapter, Dialog, Object, IEnumerable<IMiddleware>, ConversationState)

Initializes a new instance of the DialogTestClient class.

public DialogTestClient (Microsoft.Bot.Builder.Adapters.TestAdapter testAdapter, Microsoft.Bot.Builder.Dialogs.Dialog targetDialog, object initialDialogOptions = default, System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.IMiddleware> middlewares = default, Microsoft.Bot.Builder.ConversationState conversationState = default);
new Microsoft.Bot.Builder.Testing.DialogTestClient : Microsoft.Bot.Builder.Adapters.TestAdapter * Microsoft.Bot.Builder.Dialogs.Dialog * obj * seq<Microsoft.Bot.Builder.IMiddleware> * Microsoft.Bot.Builder.ConversationState -> Microsoft.Bot.Builder.Testing.DialogTestClient
Public Sub New (testAdapter As TestAdapter, targetDialog As Dialog, Optional initialDialogOptions As Object = Nothing, Optional middlewares As IEnumerable(Of IMiddleware) = Nothing, Optional conversationState As ConversationState = Nothing)

Parameters

testAdapter
TestAdapter

The TestAdapter to use.

targetDialog
Dialog

The dialog to be tested. This will be the root dialog for the test client.

initialDialogOptions
Object

(Optional) additional argument(s) to pass to the dialog being started.

middlewares
IEnumerable<IMiddleware>

(Optional) A list of middlewares to be added to the test adapter.

conversationState
ConversationState

(Optional) A ConversationState to use in the test client.

Applies to

DialogTestClient(String, Dialog, Object, IEnumerable<IMiddleware>, ConversationState)

Initializes a new instance of the DialogTestClient class.

public DialogTestClient (string channelId, Microsoft.Bot.Builder.Dialogs.Dialog targetDialog, object initialDialogOptions = default, System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.IMiddleware> middlewares = default, Microsoft.Bot.Builder.ConversationState conversationState = default);
new Microsoft.Bot.Builder.Testing.DialogTestClient : string * Microsoft.Bot.Builder.Dialogs.Dialog * obj * seq<Microsoft.Bot.Builder.IMiddleware> * Microsoft.Bot.Builder.ConversationState -> Microsoft.Bot.Builder.Testing.DialogTestClient
Public Sub New (channelId As String, targetDialog As Dialog, Optional initialDialogOptions As Object = Nothing, Optional middlewares As IEnumerable(Of IMiddleware) = Nothing, Optional conversationState As ConversationState = Nothing)

Parameters

channelId
String

The channelId (see Channels) to be used for the test. Use Emulator or Test if you are uncertain of the channel you are targeting. Otherwise, it is recommended that you use the id for the channel(s) your bot will be using. Consider writing a test case for each channel.

targetDialog
Dialog

The dialog to be tested. This will be the root dialog for the test client.

initialDialogOptions
Object

(Optional) additional argument(s) to pass to the dialog being started.

middlewares
IEnumerable<IMiddleware>

(Optional) A list of middlewares to be added to the test adapter.

conversationState
ConversationState

(Optional) A ConversationState to use in the test client.

Applies to