diff --git a/src/Tests/TransmissionManager.TorrentWebPages.Tests/TorrentWebPageClientTests.cs b/src/Tests/TransmissionManager.TorrentWebPages.Tests/TorrentWebPageClientTests.cs index 0e1e00f..45c7bc8 100644 --- a/src/Tests/TransmissionManager.TorrentWebPages.Tests/TorrentWebPageClientTests.cs +++ b/src/Tests/TransmissionManager.TorrentWebPages.Tests/TorrentWebPageClientTests.cs @@ -21,8 +21,8 @@ public sealed class TorrentWebPageClientTests [Test] public async Task FindMagnetUriAsync_FindsMagnetUri_IfGivenProperWebPage() { - const string _magnetUri = "magnet:?xt=urn:btih:EXAMPLEHASH&dn=Example+Name"; - const string _webPageContentWithMagnet = $""" + const string magnetUri = "magnet:?xt=urn:btih:EXAMPLEHASH&dn=Example+Name"; + const string webPageContentWithMagnet = $"""
@@ -33,24 +33,24 @@ public async Task FindMagnetUriAsync_FindsMagnetUri_IfGivenProperWebPage()Click the link below to open the Magnet URI:
- Download via Magnet + Download via Magnet """; var client = CreateClient( new(HttpMethod.Get, new(_webPageUri)), - new(HttpStatusCode.OK, Content: _webPageContentWithMagnet)); + new(HttpStatusCode.OK, Content: webPageContentWithMagnet)); var result = await client.FindMagnetUriAsync(_webPageUri); - Assert.That(result, Is.EqualTo(_magnetUri)); + Assert.That(result, Is.EqualTo(magnetUri)); } [Test] public async Task FindMagnetUriAsync_FindsMagnetUri_IfGivenWebPageWithoutMagnet() { - const string _webPageContentWithoutMagnet = $""" + const string webPageContentWithoutMagnet = """ @@ -67,7 +67,7 @@ public async Task FindMagnetUriAsync_FindsMagnetUri_IfGivenWebPageWithoutMagnet( var client = CreateClient( new(HttpMethod.Get, new(_webPageUri)), - new(HttpStatusCode.OK, Content: _webPageContentWithoutMagnet)); + new(HttpStatusCode.OK, Content: webPageContentWithoutMagnet)); var result = await client.FindMagnetUriAsync(_webPageUri); diff --git a/src/TransmissionManager.Transmission/Serialization/TransmissionJsonSerializerContext.cs b/src/TransmissionManager.Transmission/Serialization/TransmissionJsonSerializerContext.cs index 39422c5..accaa78 100644 --- a/src/TransmissionManager.Transmission/Serialization/TransmissionJsonSerializerContext.cs +++ b/src/TransmissionManager.Transmission/Serialization/TransmissionJsonSerializerContext.cs @@ -10,6 +10,4 @@ namespace TransmissionManager.Transmission.Serialization; [JsonSerializable(typeof(TransmissionTorrentGetResponse))] [JsonSerializable(typeof(TransmissionTorrentAddRequest))] [JsonSerializable(typeof(TransmissionTorrentAddResponse))] -internal partial class TransmissionJsonSerializerContext : JsonSerializerContext -{ -} +public partial class TransmissionJsonSerializerContext : JsonSerializerContext; diff --git a/src/TransmissionManager.Transmission/Services/SessionHeaderHandler.cs b/src/TransmissionManager.Transmission/Services/SessionHeaderHandler.cs index 018d609..21b2d7a 100644 --- a/src/TransmissionManager.Transmission/Services/SessionHeaderHandler.cs +++ b/src/TransmissionManager.Transmission/Services/SessionHeaderHandler.cs @@ -2,8 +2,7 @@ namespace TransmissionManager.Transmission.Services; -public sealed class SessionHeaderHandler(SessionHeaderProvider headerProvider) - : DelegatingHandler +public sealed class SessionHeaderHandler(SessionHeaderProvider headerProvider) : DelegatingHandler { protected override async Task