-
-
Save HamidMosalla/ddbeac779d24f878ee6240e440bce0a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FakeHttpMessageHandler : HttpMessageHandler | |
{ | |
public virtual HttpResponseMessage Send(HttpRequestMessage request) | |
{ | |
throw new NotImplementedException("Now we can setup this method with our mocking framework"); | |
} | |
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) | |
{ | |
return Task.FromResult(Send(request)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment