C# 클래스 Imgur.API.Tests.Mocks.MockHttpMessageHandler

Mock HttpMessageHandler for Unit Testing HttpClient.
상속: System.Net.Http.HttpMessageHandler
파일 보기 프로젝트 열기: DamienDennehy/Imgur.API

공개 메소드들

메소드 설명
AddResponseMessage ( string url, HttpResponseMessage response ) : void
MockHttpMessageHandler ( ) : System.Collections.Generic
MockHttpMessageHandler ( string url, HttpResponseMessage response ) : System.Collections.Generic

보호된 메소드들

메소드 설명
SendAsync ( HttpRequestMessage request, CancellationToken cancellationToken ) : Task

메소드 상세

AddResponseMessage() 공개 메소드

public AddResponseMessage ( string url, HttpResponseMessage response ) : void
url string
response System.Net.Http.HttpResponseMessage
리턴 void

MockHttpMessageHandler() 공개 메소드

public MockHttpMessageHandler ( ) : System.Collections.Generic
리턴 System.Collections.Generic

MockHttpMessageHandler() 공개 메소드

public MockHttpMessageHandler ( string url, HttpResponseMessage response ) : System.Collections.Generic
url string
response System.Net.Http.HttpResponseMessage
리턴 System.Collections.Generic

SendAsync() 보호된 메소드

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