Remove low-quality unit test
MODIFY
WalletWasabi.Backend/Filters/IdempotentActionFilterAttributeImpl.cs
WalletWasabi.Backend/Filters/IdempotentActionFilterAttributeImpl.cs
@@ -19,7 +19,6 @@ namespace WalletWasabi.Backend.Filters
_cache = cache;
}
-
public override async Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
{
var request = context.HttpContext.Request;

ADD
WalletWasabi.Tests/Helpers/HttpRequestMessageExtensions.cs
+using System.Net.Http;
+
+namespace WalletWasabi.Tests.UnitTests.WabiSabi.Integration
+{
+ public static class HttpRequestMessageExtensions
+ {
+ public static HttpRequestMessage Clone(this HttpRequestMessage request)
+ {
+ var clone = new HttpRequestMessage(request.Method, request.RequestUri)
+ {
+ Content = request.Content,
+ Version = request.Version
+ };
+ foreach (var header in request.Headers)
+ {
+ clone.Headers.TryAddWithoutValidation(header.Key, header.Value);
+ }
+
+ return clone;
+ }
+ }
+}

MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Integration/WabiSabiApiApplicationFactory.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Integration/WabiSabiApiApplicationFactory.cs
@@ -50,7 +50,6 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Integration
});
}
-
public Task<ArenaClient> CreateArenaClientAsync(HttpClient httpClient) =>
CreateArenaClientAsync(CreateWabiSabiHttpApiClient(httpClient));

MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Integration/WabiSabiHttpApiIntegrationTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Integration/WabiSabiHttpApiIntegrationTests.cs
@@ -108,9 +108,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Integration
Assert.NotEqual(uint256.Zero, response.Value);
}
- }
-
- class StuttererHttpClient : HttpClientWrapper
+ private class StuttererHttpClient : HttpClientWrapper
{
public StuttererHttpClient(HttpClient httpClient) : base(httpClient)
{
@@ -125,22 +123,5 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Integration
return result2;
}
}
-
- public static class HttpRequestMessageExtensions
- {
- public static HttpRequestMessage Clone(this HttpRequestMessage request)
- {
- var clone = new HttpRequestMessage(request.Method, request.RequestUri)
- {
- Content = request.Content,
- Version = request.Version
- };
- foreach (var header in request.Headers)
- {
- clone.Headers.TryAddWithoutValidation(header.Key, header.Value);
- }
-
- return clone;
- }
}
}

Remove low-quality unit test