// ------------------------------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // ------------------------------------------------------------------------------------------------- using System.Diagnostics.CodeAnalysis; using System.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; namespace Microsoft.Health.Client.UnitTests; internal sealed class TestInnerHandler : DelegatingHandler { [SuppressMessage("Reliability", "CA2000:Dispose objects before losing scope", Justification = "Caller is responsible for disposal.")] protected override Task SendAsync( HttpRequestMessage request, CancellationToken cancellationToken) { return Task.FromResult( new HttpResponseMessage(HttpStatusCode.OK) { RequestMessage = request, }); } }