Share via


MockHttpRequestMiddleware Class

Definition

Middleware to mock http requests with an adapter.

public class MockHttpRequestMiddleware : Microsoft.Bot.Builder.IMiddleware
type MockHttpRequestMiddleware = class
    interface IMiddleware
Public Class MockHttpRequestMiddleware
Implements IMiddleware
Inheritance
MockHttpRequestMiddleware
Implements

Constructors

MockHttpRequestMiddleware(List<HttpRequestMock>)

Initializes a new instance of the MockHttpRequestMiddleware class.

Methods

OnTurnAsync(ITurnContext, NextDelegate, CancellationToken)

When implemented in middleware, processes an incoming activity.

SetFallback(Func<HttpRequestMessage,HttpResponseMessage>)

Set fallback.

Applies to