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

Name Description
HttpRequestSequenceMock(String, Int32)

Initializes a new instance of the HttpRequestSequenceMock class.

Fields

Name Description
Kind

The type of request.

Properties

Name Description
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

Name Description
RegisterSourcePath(String, Int32)

helper to register source path with debugger.

(Inherited from HttpRequestMock)
Setup(MockHttpMessageHandler)

Configures the initial conditions.

Applies to