Table of Contents

Class MissingMockHttpClientException

Namespace
Bunit.TestDoubles
Assembly
Bunit.Web.dll

Exception use to indicate that a mock HttpClient is required by a test but was not provided.

public sealed class MissingMockHttpClientException : Exception, ISerializable
Inheritance
MissingMockHttpClientException
Implements
Inherited Members
Extension Methods

Constructors

MissingMockHttpClientException(HttpRequestMessage)

Initializes a new instance of the MissingMockHttpClientException class with the request that would have been handled.

public MissingMockHttpClientException(HttpRequestMessage request)

Parameters

request HttpRequestMessage

The request being handled by the client.

Properties

Request

Gets the request that was sent via the HTTP client.

public HttpRequestMessage? Request { get; }

Property Value

HttpRequestMessage
.NET Foundation

Supported by the .NET Foundation.