-
-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add unit test to verify correct content disposal behavior
- Loading branch information
1 parent
fff02a7
commit ba4d653
Showing
2 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
ShopifySharp.Tests/TestClasses/TestShopifyServiceWithExposedExecuteRequestCoreAsync.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Collections.Generic; | ||
using System.Net.Http; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using ShopifySharp.Infrastructure; | ||
|
||
namespace ShopifySharp.Tests.TestClasses; | ||
|
||
public class TestShopifyServiceWithExposedExecuteRequestCoreAsync() | ||
: ShopifyService("some-shop-domain", "some-access-token") | ||
{ | ||
public new Task<RequestResult<string>> ExecuteRequestCoreAsync( | ||
RequestUri uri, | ||
HttpMethod method, | ||
HttpContent content, | ||
Dictionary<string, string> headers, | ||
int? graphqlQueryCost, | ||
CancellationToken cancellationToken = default | ||
) => base.ExecuteRequestCoreAsync(uri, method, content, headers, graphqlQueryCost, cancellationToken); | ||
} |