Share via


HttpRequestMock.Setup(MockHttpMessageHandler) Method

Definition

In the constructor of MockHttpRequestMiddleware, this function will be called to setup a global handler.

public abstract void Setup (RichardSzalay.MockHttp.MockHttpMessageHandler handler);
abstract member Setup : RichardSzalay.MockHttp.MockHttpMessageHandler -> unit
Public MustOverride Sub Setup (handler As MockHttpMessageHandler)

Parameters

handler
RichardSzalay.MockHttp.MockHttpMessageHandler

The global handler.

Applies to