MockerHttpExtensions..::..CreateHttpClient Method
Creates the HTTP client using a mock IHttpClientFactory.
Namespace:
FastMoq.ExtensionsAssembly: FastMoq.Core (in FastMoq.Core.dll)
Syntax
public static HttpClient CreateHttpClient( this Mocker mocker, string clientName, string baseAddress, HttpStatusCode statusCode, string stringContent )
<ExtensionAttribute> _ Public Shared Function CreateHttpClient ( _ mocker As Mocker, _ clientName As String, _ baseAddress As String, _ statusCode As HttpStatusCode, _ stringContent As String _ ) As HttpClient
[ExtensionAttribute] public: static HttpClient^ CreateHttpClient( Mocker^ mocker, String^ clientName, String^ baseAddress, HttpStatusCode^ statusCode, String^ stringContent )
Parameters
- mocker
- Type: FastMoq..::..Mocker
The mocker.
- clientName
- Type: String
Name of the client.
- baseAddress
- Type: String
The base address.
- statusCode
- Type: HttpStatusCode
The status code.
- stringContent
- Type: String
Content of the string.