Share via


HttpRequestSequenceMock Class

Definition

Mock http request in sequence order. The last response will be repeated.

public class HttpRequestSequenceMock : Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.HttpRequestMocks.HttpRequestMock
type HttpRequestSequenceMock = class
    inherit HttpRequestMock
Public Class HttpRequestSequenceMock
Inherits HttpRequestMock
Inheritance
HttpRequestSequenceMock

Constructors

HttpRequestSequenceMock(String, Int32)

Initializes a new instance of the HttpRequestSequenceMock class.

Fields

Kind

The type of request.

Properties

Body

Gets or sets the body to match against request's body.

MatchType

Gets or sets the match type for body.

Method

Gets or sets the HttpMethod to match. If null, match to any method.

Responses

Gets the sequence of responses to reply. The last one will be repeated.

Url

Gets or sets the Url to match. Absolute or relative, may contain * wildcards.

Methods

RegisterSourcePath(String, Int32)

helper to register source path with debugger.

(Inherited from HttpRequestMock)
Setup(MockHttpMessageHandler)

Configures the initial conditions.

Applies to