C# Class Hepsi.Http.Client.Testing.FakeResponseDelegatingHandler

Inheritance: System.Net.Http.DelegatingHandler
Datei anzeigen Open project: hepsiburada/HepsiHttpClient Class Usage Examples

Public Methods

Method Description
AddFakeResponse ( Uri uri, Func response ) : void

Protected Methods

Method Description
SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

Method Details

AddFakeResponse() public method

public AddFakeResponse ( Uri uri, Func response ) : void
uri System.Uri
response Func
return void

SendAsync() protected method

protected SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task
request System.Net.Http.HttpRequestMessage
cancellationToken System.Threading.CancellationToken
return Task