mirror of
https://github.com/AlexMacocian/SystemExtensions.git
synced 2026-07-16 14:39:28 +00:00
e6a06915cd
Codestyle fixes Setup CODEOWNERS Setup dependabot
17 lines
497 B
C#
17 lines
497 B
C#
using System.Net.Http;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SystemExtensions.NetStandard.DependencyInjection.Tests.Http.Models;
|
|
public sealed class HttpMessageHandlerMock : HttpMessageHandler
|
|
{
|
|
public bool Called { get; private set; }
|
|
|
|
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
|
|
{
|
|
this.Called = true;
|
|
|
|
return Task.FromResult(new HttpResponseMessage());
|
|
}
|
|
}
|