Show / Hide Table of Contents

Class HttpClientBuilderExtensions

Extensions for that allow Typed Clients to return mock data

Inheritance
System.Object
HttpClientBuilderExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: BlazorFocused.Tools
Assembly: BlazorFocused.Tools.dll
Syntax
public static class HttpClientBuilderExtensions

Methods

| Improve this Doc View Source

AddSimulatedHttp(IHttpClientBuilder, ISimulatedHttp)

Adds mock data contained withing ISimulatedHttp to Typed Clients

Declaration
public static IHttpClientBuilder AddSimulatedHttp(this IHttpClientBuilder httpClientBuilder, ISimulatedHttp simulatedHttp)
Parameters
Type Name Description
IHttpClientBuilder httpClientBuilder

Current in service registration

ISimulatedHttp simulatedHttp

Provides mock data based on method requests

Returns
Type Description
IHttpClientBuilder

Current IHttpClientBuilder with newly registered ISimulatedHttp

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX