ภาษา

TestFlow.AssertReplySatisfies Method

Definition

Overloads

Name Description
AssertReplySatisfies(Func<IActivity,Task>, String, UInt32)

Asserts the next reply satisfies an async validation delegate. Exceptions from the delegate propagate as-is (no wrapping).

AssertReplySatisfies(IResponseValidator, String, UInt32)

Asserts the next reply satisfies an IResponseValidator. Exceptions from the validator propagate as-is (no wrapping).

AssertReplySatisfies(Func<IActivity,Task>, String, UInt32)

Asserts the next reply satisfies an async validation delegate. Exceptions from the delegate propagate as-is (no wrapping).

public Microsoft.Agents.Builder.Testing.TestFlow AssertReplySatisfies(Func<Microsoft.Agents.Core.Models.IActivity,System.Threading.Tasks.Task> validateAsync, string description = default, uint timeout = 3000);
member this.AssertReplySatisfies : Func<Microsoft.Agents.Core.Models.IActivity, System.Threading.Tasks.Task> * string * uint32 -> Microsoft.Agents.Builder.Testing.TestFlow
Public Function AssertReplySatisfies (validateAsync As Func(Of IActivity, Task), Optional description As String = Nothing, Optional timeout As UInteger = 3000) As TestFlow

Parameters

validateAsync
Func<IActivity,Task>

Async validation delegate. Throw to signal failure.

description
String

Optional description (currently informational).

timeout
UInt32

Milliseconds to wait for a reply.

Returns

Applies to

AssertReplySatisfies(IResponseValidator, String, UInt32)

Asserts the next reply satisfies an IResponseValidator. Exceptions from the validator propagate as-is (no wrapping).

public Microsoft.Agents.Builder.Testing.TestFlow AssertReplySatisfies(Microsoft.Agents.Builder.Testing.IResponseValidator validator, string description = default, uint timeout = 3000);
member this.AssertReplySatisfies : Microsoft.Agents.Builder.Testing.IResponseValidator * string * uint32 -> Microsoft.Agents.Builder.Testing.TestFlow
Public Function AssertReplySatisfies (validator As IResponseValidator, Optional description As String = Nothing, Optional timeout As UInteger = 3000) As TestFlow

Parameters

validator
IResponseValidator

The validator to run against the reply.

description
String

Optional description (currently informational).

timeout
UInt32

Milliseconds to wait for a reply.

Returns

Applies to