Skip to content

Commit c78e38f

Browse files
committed
feat: make HttpContent parameter optional
1 parent 3e827a0 commit c78e38f

15 files changed

Lines changed: 248 additions & 156 deletions

Source/Mockolate/Web/HttpClientExtensions.Setup.Delete.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static partial class HttpClientExtensions
2424
/// </summary>
2525
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> DeleteAsync(
2626
IParameter<string?>? requestUri)
27-
=> setup.DeleteAsync(requestUri, It.IsAny<CancellationToken>());
27+
=> setup.DeleteAsync(requestUri ?? It.IsAny<string?>(), It.IsAny<CancellationToken>());
2828

2929
/// <summary>
3030
/// Setup for the method
@@ -33,15 +33,15 @@ public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, Cancell
3333
/// </summary>
3434
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> DeleteAsync(
3535
IParameter<Uri?>? requestUri)
36-
=> setup.DeleteAsync(requestUri, It.IsAny<CancellationToken>());
36+
=> setup.DeleteAsync(requestUri ?? It.IsAny<Uri?>(), It.IsAny<CancellationToken>());
3737

3838
/// <summary>
3939
/// Setup for the method
4040
/// <see cref="System.Net.Http.HttpClient.DeleteAsync(string?, System.Threading.CancellationToken)" />
4141
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
4242
/// </summary>
4343
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> DeleteAsync(
44-
IParameter<string?>? requestUri,
44+
IParameter<string?> requestUri,
4545
IParameter<CancellationToken> cancellationToken)
4646
{
4747
if (setup is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -65,7 +65,7 @@ public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, Cancell
6565
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
6666
/// </summary>
6767
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> DeleteAsync(
68-
IParameter<Uri?>? requestUri,
68+
IParameter<Uri?> requestUri,
6969
IParameter<CancellationToken> cancellationToken)
7070
{
7171
if (setup is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&

Source/Mockolate/Web/HttpClientExtensions.Setup.Get.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static partial class HttpClientExtensions
2424
/// </summary>
2525
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> GetAsync(
2626
IParameter<string?>? requestUri)
27-
=> setup.GetAsync(requestUri, It.IsAny<CancellationToken>());
27+
=> setup.GetAsync(requestUri ?? It.IsAny<string?>(), It.IsAny<CancellationToken>());
2828

2929
/// <summary>
3030
/// Setup for the method
@@ -33,15 +33,15 @@ public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, Cancell
3333
/// </summary>
3434
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> GetAsync(
3535
IParameter<Uri?>? requestUri)
36-
=> setup.GetAsync(requestUri, It.IsAny<CancellationToken>());
36+
=> setup.GetAsync(requestUri ?? It.IsAny<Uri?>(), It.IsAny<CancellationToken>());
3737

3838
/// <summary>
3939
/// Setup for the method
4040
/// <see cref="System.Net.Http.HttpClient.GetAsync(string?, System.Threading.CancellationToken)" />
4141
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
4242
/// </summary>
4343
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> GetAsync(
44-
IParameter<string?>? requestUri,
44+
IParameter<string?> requestUri,
4545
IParameter<CancellationToken> cancellationToken)
4646
{
4747
if (setup is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -65,7 +65,7 @@ public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, Cancell
6565
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
6666
/// </summary>
6767
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> GetAsync(
68-
IParameter<Uri?>? requestUri,
68+
IParameter<Uri?> requestUri,
6969
IParameter<CancellationToken> cancellationToken)
7070
{
7171
if (setup is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&

Source/Mockolate/Web/HttpClientExtensions.Setup.Patch.cs

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ public static partial class HttpClientExtensions
2525
/// </summary>
2626
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> PatchAsync(
2727
IParameter<string?>? requestUri,
28-
IParameter<HttpContent?>? content)
29-
=> setup.PatchAsync(requestUri, content, It.IsAny<CancellationToken>());
28+
IParameter<HttpContent?>? content = null)
29+
=> setup.PatchAsync(
30+
requestUri ?? It.IsAny<string?>(),
31+
content ?? It.IsAny<HttpContent?>(),
32+
It.IsAny<CancellationToken>());
3033

3134
/// <summary>
3235
/// Setup for the method
@@ -35,17 +38,20 @@ public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, Cancell
3538
/// </summary>
3639
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> PatchAsync(
3740
IParameter<Uri?>? requestUri,
38-
IParameter<HttpContent?>? content)
39-
=> setup.PatchAsync(requestUri, content, It.IsAny<CancellationToken>());
41+
IParameter<HttpContent?>? content = null)
42+
=> setup.PatchAsync(
43+
requestUri ?? It.IsAny<Uri?>(),
44+
content ?? It.IsAny<HttpContent?>(),
45+
It.IsAny<CancellationToken>());
4046

4147
/// <summary>
4248
/// Setup for the method
4349
/// <see cref="System.Net.Http.HttpClient.PatchAsync(string?, HttpContent?, System.Threading.CancellationToken)" />
4450
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
4551
/// </summary>
4652
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> PatchAsync(
47-
IParameter<string?>? requestUri,
48-
IParameter<HttpContent?>? content,
53+
IParameter<string?> requestUri,
54+
IParameter<HttpContent?> content,
4955
IParameter<CancellationToken> cancellationToken)
5056
{
5157
if (setup is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -70,8 +76,8 @@ public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, Cancell
7076
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
7177
/// </summary>
7278
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> PatchAsync(
73-
IParameter<Uri?>? requestUri,
74-
IParameter<HttpContent?>? content,
79+
IParameter<Uri?> requestUri,
80+
IParameter<HttpContent?> content,
7581
IParameter<CancellationToken> cancellationToken)
7682
{
7783
if (setup is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&

Source/Mockolate/Web/HttpClientExtensions.Setup.Post.cs

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ public static partial class HttpClientExtensions
2424
/// </summary>
2525
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> PostAsync(
2626
IParameter<string?>? requestUri,
27-
IParameter<HttpContent?>? content)
28-
=> setup.PostAsync(requestUri, content, It.IsAny<CancellationToken>());
27+
IParameter<HttpContent?>? content = null)
28+
=> setup.PostAsync(
29+
requestUri ?? It.IsAny<string?>(),
30+
content ?? It.IsAny<HttpContent?>(),
31+
It.IsAny<CancellationToken>());
2932

3033
/// <summary>
3134
/// Setup for the method
@@ -34,17 +37,20 @@ public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, Cancell
3437
/// </summary>
3538
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> PostAsync(
3639
IParameter<Uri?>? requestUri,
37-
IParameter<HttpContent?>? content)
38-
=> setup.PostAsync(requestUri, content, It.IsAny<CancellationToken>());
40+
IParameter<HttpContent?>? content = null)
41+
=> setup.PostAsync(
42+
requestUri ?? It.IsAny<Uri?>(),
43+
content ?? It.IsAny<HttpContent?>(),
44+
It.IsAny<CancellationToken>());
3945

4046
/// <summary>
4147
/// Setup for the method
4248
/// <see cref="System.Net.Http.HttpClient.PostAsync(string?, HttpContent?, System.Threading.CancellationToken)" />
4349
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
4450
/// </summary>
4551
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> PostAsync(
46-
IParameter<string?>? requestUri,
47-
IParameter<HttpContent?>? content,
52+
IParameter<string?> requestUri,
53+
IParameter<HttpContent?> content,
4854
IParameter<CancellationToken> cancellationToken)
4955
{
5056
if (setup is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -69,8 +75,8 @@ public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, Cancell
6975
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
7076
/// </summary>
7177
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> PostAsync(
72-
IParameter<Uri?>? requestUri,
73-
IParameter<HttpContent?>? content,
78+
IParameter<Uri?> requestUri,
79+
IParameter<HttpContent?> content,
7480
IParameter<CancellationToken> cancellationToken)
7581
{
7682
if (setup is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&

Source/Mockolate/Web/HttpClientExtensions.Setup.Put.cs

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ public static partial class HttpClientExtensions
2424
/// </summary>
2525
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> PutAsync(
2626
IParameter<string?>? requestUri,
27-
IParameter<HttpContent?>? content)
28-
=> setup.PutAsync(requestUri, content, It.IsAny<CancellationToken>());
27+
IParameter<HttpContent?>? content = null)
28+
=> setup.PutAsync(
29+
requestUri ?? It.IsAny<string?>(),
30+
content ?? It.IsAny<HttpContent?>(),
31+
It.IsAny<CancellationToken>());
2932

3033
/// <summary>
3134
/// Setup for the method
@@ -34,17 +37,20 @@ public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, Cancell
3437
/// </summary>
3538
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> PutAsync(
3639
IParameter<Uri?>? requestUri,
37-
IParameter<HttpContent?>? content)
38-
=> setup.PutAsync(requestUri, content, It.IsAny<CancellationToken>());
40+
IParameter<HttpContent?>? content = null)
41+
=> setup.PutAsync(
42+
requestUri ?? It.IsAny<Uri?>(),
43+
content ?? It.IsAny<HttpContent?>(),
44+
It.IsAny<CancellationToken>());
3945

4046
/// <summary>
4147
/// Setup for the method
4248
/// <see cref="System.Net.Http.HttpClient.PutAsync(string?, HttpContent?, System.Threading.CancellationToken)" />
4349
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
4450
/// </summary>
4551
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> PutAsync(
46-
IParameter<string?>? requestUri,
47-
IParameter<HttpContent?>? content,
52+
IParameter<string?> requestUri,
53+
IParameter<HttpContent?> content,
4854
IParameter<CancellationToken> cancellationToken)
4955
{
5056
if (setup is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -69,8 +75,8 @@ public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, Cancell
6975
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
7076
/// </summary>
7177
public IReturnMethodSetup<Task<HttpResponseMessage>, HttpRequestMessage, CancellationToken> PutAsync(
72-
IParameter<Uri?>? requestUri,
73-
IParameter<HttpContent?>? content,
78+
IParameter<Uri?> requestUri,
79+
IParameter<HttpContent?> content,
7480
IParameter<CancellationToken> cancellationToken)
7581
{
7682
if (setup is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&

Source/Mockolate/Web/HttpClientExtensions.Verify.Delete.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static partial class HttpClientExtensions
2323
/// </summary>
2424
public VerificationResult<HttpClient> DeleteAsync(
2525
IParameter<string?>? requestUri)
26-
=> verifyInvoked.DeleteAsync(requestUri, It.IsAny<CancellationToken>());
26+
=> verifyInvoked.DeleteAsync(requestUri ?? It.IsAny<string?>(), It.IsAny<CancellationToken>());
2727

2828
/// <summary>
2929
/// Validates the invocations for the method
@@ -32,15 +32,15 @@ public VerificationResult<HttpClient> DeleteAsync(
3232
/// </summary>
3333
public VerificationResult<HttpClient> DeleteAsync(
3434
IParameter<Uri?>? requestUri)
35-
=> verifyInvoked.DeleteAsync(requestUri, It.IsAny<CancellationToken>());
35+
=> verifyInvoked.DeleteAsync(requestUri ?? It.IsAny<Uri?>(), It.IsAny<CancellationToken>());
3636

3737
/// <summary>
3838
/// Validates the invocations for the method
3939
/// <see cref="System.Net.Http.HttpClient.DeleteAsync(string?)" />
4040
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
4141
/// </summary>
4242
public VerificationResult<HttpClient> DeleteAsync(
43-
IParameter<string?>? requestUri,
43+
IParameter<string?> requestUri,
4444
IParameter<CancellationToken> cancellationToken)
4545
{
4646
if (verifyInvoked is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -62,7 +62,7 @@ public VerificationResult<HttpClient> DeleteAsync(
6262
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
6363
/// </summary>
6464
public VerificationResult<HttpClient> DeleteAsync(
65-
IParameter<Uri?>? requestUri,
65+
IParameter<Uri?> requestUri,
6666
IParameter<CancellationToken> cancellationToken)
6767
{
6868
if (verifyInvoked is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&

Source/Mockolate/Web/HttpClientExtensions.Verify.Get.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static partial class HttpClientExtensions
2323
/// </summary>
2424
public VerificationResult<HttpClient> GetAsync(
2525
IParameter<string?>? requestUri)
26-
=> verifyInvoked.GetAsync(requestUri, It.IsAny<CancellationToken>());
26+
=> verifyInvoked.GetAsync(requestUri ?? It.IsAny<string?>(), It.IsAny<CancellationToken>());
2727

2828
/// <summary>
2929
/// Validates the invocations for the method
@@ -32,15 +32,15 @@ public VerificationResult<HttpClient> GetAsync(
3232
/// </summary>
3333
public VerificationResult<HttpClient> GetAsync(
3434
IParameter<Uri?>? requestUri)
35-
=> verifyInvoked.GetAsync(requestUri, It.IsAny<CancellationToken>());
35+
=> verifyInvoked.GetAsync(requestUri ?? It.IsAny<Uri?>(), It.IsAny<CancellationToken>());
3636

3737
/// <summary>
3838
/// Validates the invocations for the method
3939
/// <see cref="System.Net.Http.HttpClient.GetAsync(string?)" />
4040
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
4141
/// </summary>
4242
public VerificationResult<HttpClient> GetAsync(
43-
IParameter<string?>? requestUri,
43+
IParameter<string?> requestUri,
4444
IParameter<CancellationToken> cancellationToken)
4545
{
4646
if (verifyInvoked is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -62,7 +62,7 @@ public VerificationResult<HttpClient> GetAsync(
6262
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
6363
/// </summary>
6464
public VerificationResult<HttpClient> GetAsync(
65-
IParameter<Uri?>? requestUri,
65+
IParameter<Uri?> requestUri,
6666
IParameter<CancellationToken> cancellationToken)
6767
{
6868
if (verifyInvoked is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&

Source/Mockolate/Web/HttpClientExtensions.Verify.Patch.cs

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ public static partial class HttpClientExtensions
2424
/// </summary>
2525
public VerificationResult<HttpClient> PatchAsync(
2626
IParameter<string?>? requestUri,
27-
IParameter<HttpContent?>? content)
28-
=> verifyInvoked.PatchAsync(requestUri, content, It.IsAny<CancellationToken>());
27+
IParameter<HttpContent?>? content = null)
28+
=> verifyInvoked.PatchAsync(
29+
requestUri ?? It.IsAny<string?>(),
30+
content ?? It.IsAny<HttpContent?>(),
31+
It.IsAny<CancellationToken>());
2932

3033
/// <summary>
3134
/// Validates the invocations for the method
@@ -34,17 +37,20 @@ public VerificationResult<HttpClient> PatchAsync(
3437
/// </summary>
3538
public VerificationResult<HttpClient> PatchAsync(
3639
IParameter<Uri?>? requestUri,
37-
IParameter<HttpContent?>? content)
38-
=> verifyInvoked.PatchAsync(requestUri, content, It.IsAny<CancellationToken>());
40+
IParameter<HttpContent?>? content = null)
41+
=> verifyInvoked.PatchAsync(
42+
requestUri ?? It.IsAny<Uri?>(),
43+
content ?? It.IsAny<HttpContent?>(),
44+
It.IsAny<CancellationToken>());
3945

4046
/// <summary>
4147
/// Validates the invocations for the method
4248
/// <see cref="System.Net.Http.HttpClient.PatchAsync(string?, HttpContent?)" />
4349
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
4450
/// </summary>
4551
public VerificationResult<HttpClient> PatchAsync(
46-
IParameter<string?>? requestUri,
47-
IParameter<HttpContent?>? content,
52+
IParameter<string?> requestUri,
53+
IParameter<HttpContent?> content,
4854
IParameter<CancellationToken> cancellationToken)
4955
{
5056
if (verifyInvoked is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -67,8 +73,8 @@ public VerificationResult<HttpClient> PatchAsync(
6773
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
6874
/// </summary>
6975
public VerificationResult<HttpClient> PatchAsync(
70-
IParameter<Uri?>? requestUri,
71-
IParameter<HttpContent?>? content,
76+
IParameter<Uri?> requestUri,
77+
IParameter<HttpContent?> content,
7278
IParameter<CancellationToken> cancellationToken)
7379
{
7480
if (verifyInvoked is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&

Source/Mockolate/Web/HttpClientExtensions.Verify.Post.cs

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ public static partial class HttpClientExtensions
2323
/// </summary>
2424
public VerificationResult<HttpClient> PostAsync(
2525
IParameter<string?>? requestUri,
26-
IParameter<HttpContent?>? content)
27-
=> verifyInvoked.PostAsync(requestUri, content, It.IsAny<CancellationToken>());
26+
IParameter<HttpContent?>? content = null)
27+
=> verifyInvoked.PostAsync(
28+
requestUri ?? It.IsAny<string?>(),
29+
content ?? It.IsAny<HttpContent?>(),
30+
It.IsAny<CancellationToken>());
2831

2932
/// <summary>
3033
/// Validates the invocations for the method
@@ -33,17 +36,20 @@ public VerificationResult<HttpClient> PostAsync(
3336
/// </summary>
3437
public VerificationResult<HttpClient> PostAsync(
3538
IParameter<Uri?>? requestUri,
36-
IParameter<HttpContent?>? content)
37-
=> verifyInvoked.PostAsync(requestUri, content, It.IsAny<CancellationToken>());
39+
IParameter<HttpContent?>? content = null)
40+
=> verifyInvoked.PostAsync(
41+
requestUri ?? It.IsAny<Uri?>(),
42+
content ?? It.IsAny<HttpContent?>(),
43+
It.IsAny<CancellationToken>());
3844

3945
/// <summary>
4046
/// Validates the invocations for the method
4147
/// <see cref="System.Net.Http.HttpClient.PostAsync(string?, HttpContent?)" />
4248
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
4349
/// </summary>
4450
public VerificationResult<HttpClient> PostAsync(
45-
IParameter<string?>? requestUri,
46-
IParameter<HttpContent?>? content,
51+
IParameter<string?> requestUri,
52+
IParameter<HttpContent?> content,
4753
IParameter<CancellationToken> cancellationToken)
4854
{
4955
if (verifyInvoked is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -66,8 +72,8 @@ public VerificationResult<HttpClient> PostAsync(
6672
/// with the given <paramref name="requestUri" /> and <paramref name="cancellationToken" />.
6773
/// </summary>
6874
public VerificationResult<HttpClient> PostAsync(
69-
IParameter<Uri?>? requestUri,
70-
IParameter<HttpContent?>? content,
75+
IParameter<Uri?> requestUri,
76+
IParameter<HttpContent?> content,
7177
IParameter<CancellationToken> cancellationToken)
7278
{
7379
if (verifyInvoked is Mock<HttpClient> { ConstructorParameters.Length: > 0, } httpClientMock &&

0 commit comments

Comments
 (0)