MockerHttpExtensions..::..SetupHttpMessage Method
Setups the HTTP message.
Namespace:
FastMoq.ExtensionsAssembly: FastMoq.Core (in FastMoq.Core.dll)
Syntax
public static void SetupHttpMessage( this Mocker mocker, Func<HttpResponseMessage> messageFunc, Nullable<Expression> request, Nullable<Expression> cancellationToken )
<ExtensionAttribute> _ Public Shared Sub SetupHttpMessage ( _ mocker As Mocker, _ messageFunc As Func(Of HttpResponseMessage), _ request As Nullable(Of Expression), _ cancellationToken As Nullable(Of Expression) _ )
[ExtensionAttribute] public: static void SetupHttpMessage( Mocker^ mocker, Func<HttpResponseMessage^>^ messageFunc, Nullable<Expression^> request, Nullable<Expression^> cancellationToken )
Parameters
- mocker
- Type: FastMoq..::..Mocker
The mocker.
- messageFunc
- Type: Func<(Of <(<'HttpResponseMessage>)>)>
The message function.
- request
- Type: Nullable<(Of <(<'Expression>)>)>
The request.
- cancellationToken
- Type: Nullable<(Of <(<'Expression>)>)>
The cancellation token.