TestFlow.AssertReplySatisfies 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
| 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
- 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.