Skip to content

Commit

Permalink
Clean up warnings in test file
Browse files Browse the repository at this point in the history
  • Loading branch information
nozzlegear committed Jan 29, 2024
1 parent e2ea325 commit d97dcf1
Showing 1 changed file with 3 additions and 6 deletions.
Expand Up @@ -3,12 +3,12 @@
using System.Text;
using System.IO;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using FluentAssertions;
using JetBrains.Annotations;
using ShopifySharp.Infrastructure;
using Xunit;
#pragma warning disable CS0618 // Type or member is obsolete

namespace ShopifySharp.Tests.Infrastructure;

Expand Down Expand Up @@ -401,12 +401,9 @@ public async Task Dispose_ShouldDisposeAfterBeingCloned()
baseRequest.Disposed.Should().BeFalse();
}

class TestCloneableRequestMessage : CloneableRequestMessage
private class TestCloneableRequestMessage(Uri url, HttpMethod method, HttpContent? content = null)
: CloneableRequestMessage(url, method, content)
{
public TestCloneableRequestMessage(Uri url, HttpMethod method, HttpContent? content = null) : base(url, method, content)
{
}

public bool Disposed { get; private set; }

protected override void Dispose(bool disposing)
Expand Down

0 comments on commit d97dcf1

Please sign in to comment.