diff --git a/Source/Mockolate/Web/HttpClientExtensions.Setup.Delete.cs b/Source/Mockolate/Web/HttpClientExtensions.Setup.Delete.cs
index fc7de5e4..4b1e3e1e 100644
--- a/Source/Mockolate/Web/HttpClientExtensions.Setup.Delete.cs
+++ b/Source/Mockolate/Web/HttpClientExtensions.Setup.Delete.cs
@@ -23,7 +23,7 @@ public static partial class HttpClientExtensions
/// with the given .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> DeleteAsync(
- IParameter? requestUri)
+ IParameter requestUri)
=> setup.DeleteAsync(requestUri, It.IsAny());
///
@@ -32,7 +32,7 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
/// with the given .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> DeleteAsync(
- IParameter? requestUri)
+ IParameter requestUri)
=> setup.DeleteAsync(requestUri, It.IsAny());
///
@@ -41,7 +41,7 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
/// with the given and .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> DeleteAsync(
- IParameter? requestUri,
+ IParameter requestUri,
IParameter cancellationToken)
{
if (setup is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -56,7 +56,8 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
return methodSetup;
}
- throw new MockException("Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
///
@@ -65,7 +66,7 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
/// with the given and .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> DeleteAsync(
- IParameter? requestUri,
+ IParameter requestUri,
IParameter cancellationToken)
{
if (setup is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -80,7 +81,8 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
return methodSetup;
}
- throw new MockException("Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
}
}
diff --git a/Source/Mockolate/Web/HttpClientExtensions.Setup.Get.cs b/Source/Mockolate/Web/HttpClientExtensions.Setup.Get.cs
index e66c16ba..3008922c 100644
--- a/Source/Mockolate/Web/HttpClientExtensions.Setup.Get.cs
+++ b/Source/Mockolate/Web/HttpClientExtensions.Setup.Get.cs
@@ -23,7 +23,7 @@ public static partial class HttpClientExtensions
/// with the given .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> GetAsync(
- IParameter? requestUri)
+ IParameter requestUri)
=> setup.GetAsync(requestUri, It.IsAny());
///
@@ -32,7 +32,7 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
/// with the given .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> GetAsync(
- IParameter? requestUri)
+ IParameter requestUri)
=> setup.GetAsync(requestUri, It.IsAny());
///
@@ -41,7 +41,7 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
/// with the given and .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> GetAsync(
- IParameter? requestUri,
+ IParameter requestUri,
IParameter cancellationToken)
{
if (setup is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -56,7 +56,8 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
return methodSetup;
}
- throw new MockException("Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
///
@@ -65,7 +66,7 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
/// with the given and .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> GetAsync(
- IParameter? requestUri,
+ IParameter requestUri,
IParameter cancellationToken)
{
if (setup is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -80,7 +81,8 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
return methodSetup;
}
- throw new MockException("Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
}
}
diff --git a/Source/Mockolate/Web/HttpClientExtensions.Setup.Patch.cs b/Source/Mockolate/Web/HttpClientExtensions.Setup.Patch.cs
index 2d6f7b11..6be80c19 100644
--- a/Source/Mockolate/Web/HttpClientExtensions.Setup.Patch.cs
+++ b/Source/Mockolate/Web/HttpClientExtensions.Setup.Patch.cs
@@ -24,9 +24,12 @@ public static partial class HttpClientExtensions
/// with the given .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> PatchAsync(
- IParameter? requestUri,
- IParameter? content)
- => setup.PatchAsync(requestUri, content, It.IsAny());
+ IParameter requestUri,
+ IParameter? content = null)
+ => setup.PatchAsync(
+ requestUri,
+ content ?? It.IsAny(),
+ It.IsAny());
///
/// Setup for the method
@@ -34,9 +37,12 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
/// with the given .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> PatchAsync(
- IParameter? requestUri,
- IParameter? content)
- => setup.PatchAsync(requestUri, content, It.IsAny());
+ IParameter requestUri,
+ IParameter? content = null)
+ => setup.PatchAsync(
+ requestUri,
+ content ?? It.IsAny(),
+ It.IsAny());
///
/// Setup for the method
@@ -44,8 +50,8 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
/// with the given and .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> PatchAsync(
- IParameter? requestUri,
- IParameter? content,
+ IParameter requestUri,
+ IParameter content,
IParameter cancellationToken)
{
if (setup is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -61,7 +67,8 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
return methodSetup;
}
- throw new MockException("Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
///
@@ -70,8 +77,8 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
/// with the given and .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> PatchAsync(
- IParameter? requestUri,
- IParameter? content,
+ IParameter requestUri,
+ IParameter content,
IParameter cancellationToken)
{
if (setup is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -87,7 +94,8 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
return methodSetup;
}
- throw new MockException("Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
}
}
diff --git a/Source/Mockolate/Web/HttpClientExtensions.Setup.Post.cs b/Source/Mockolate/Web/HttpClientExtensions.Setup.Post.cs
index d726a6c0..5b6ac660 100644
--- a/Source/Mockolate/Web/HttpClientExtensions.Setup.Post.cs
+++ b/Source/Mockolate/Web/HttpClientExtensions.Setup.Post.cs
@@ -23,9 +23,12 @@ public static partial class HttpClientExtensions
/// with the given .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> PostAsync(
- IParameter? requestUri,
- IParameter? content)
- => setup.PostAsync(requestUri, content, It.IsAny());
+ IParameter requestUri,
+ IParameter? content = null)
+ => setup.PostAsync(
+ requestUri,
+ content ?? It.IsAny(),
+ It.IsAny());
///
/// Setup for the method
@@ -33,9 +36,12 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
/// with the given .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> PostAsync(
- IParameter? requestUri,
- IParameter? content)
- => setup.PostAsync(requestUri, content, It.IsAny());
+ IParameter requestUri,
+ IParameter? content = null)
+ => setup.PostAsync(
+ requestUri,
+ content ?? It.IsAny(),
+ It.IsAny());
///
/// Setup for the method
@@ -43,8 +49,8 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
/// with the given and .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> PostAsync(
- IParameter? requestUri,
- IParameter? content,
+ IParameter requestUri,
+ IParameter content,
IParameter cancellationToken)
{
if (setup is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -60,7 +66,8 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
return methodSetup;
}
- throw new MockException("Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
///
@@ -69,8 +76,8 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
/// with the given and .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> PostAsync(
- IParameter? requestUri,
- IParameter? content,
+ IParameter requestUri,
+ IParameter content,
IParameter cancellationToken)
{
if (setup is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -86,7 +93,8 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
return methodSetup;
}
- throw new MockException("Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
}
}
diff --git a/Source/Mockolate/Web/HttpClientExtensions.Setup.Put.cs b/Source/Mockolate/Web/HttpClientExtensions.Setup.Put.cs
index 99658d0b..94f75289 100644
--- a/Source/Mockolate/Web/HttpClientExtensions.Setup.Put.cs
+++ b/Source/Mockolate/Web/HttpClientExtensions.Setup.Put.cs
@@ -23,9 +23,12 @@ public static partial class HttpClientExtensions
/// with the given .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> PutAsync(
- IParameter? requestUri,
- IParameter? content)
- => setup.PutAsync(requestUri, content, It.IsAny());
+ IParameter requestUri,
+ IParameter? content = null)
+ => setup.PutAsync(
+ requestUri,
+ content ?? It.IsAny(),
+ It.IsAny());
///
/// Setup for the method
@@ -33,9 +36,12 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
/// with the given .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> PutAsync(
- IParameter? requestUri,
- IParameter? content)
- => setup.PutAsync(requestUri, content, It.IsAny());
+ IParameter requestUri,
+ IParameter? content = null)
+ => setup.PutAsync(
+ requestUri,
+ content ?? It.IsAny(),
+ It.IsAny());
///
/// Setup for the method
@@ -43,8 +49,8 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
/// with the given and .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> PutAsync(
- IParameter? requestUri,
- IParameter? content,
+ IParameter requestUri,
+ IParameter content,
IParameter cancellationToken)
{
if (setup is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -60,7 +66,8 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
return methodSetup;
}
- throw new MockException("Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
///
@@ -69,8 +76,8 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
/// with the given and .
///
public IReturnMethodSetup, HttpRequestMessage, CancellationToken> PutAsync(
- IParameter? requestUri,
- IParameter? content,
+ IParameter requestUri,
+ IParameter content,
IParameter cancellationToken)
{
if (setup is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -86,7 +93,8 @@ public IReturnMethodSetup, HttpRequestMessage, Cancell
return methodSetup;
}
- throw new MockException("Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot setup HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
}
}
diff --git a/Source/Mockolate/Web/HttpClientExtensions.Verify.Delete.cs b/Source/Mockolate/Web/HttpClientExtensions.Verify.Delete.cs
index ff57907b..b075d633 100644
--- a/Source/Mockolate/Web/HttpClientExtensions.Verify.Delete.cs
+++ b/Source/Mockolate/Web/HttpClientExtensions.Verify.Delete.cs
@@ -22,7 +22,7 @@ public static partial class HttpClientExtensions
/// with the given .
///
public VerificationResult DeleteAsync(
- IParameter? requestUri)
+ IParameter requestUri)
=> verifyInvoked.DeleteAsync(requestUri, It.IsAny());
///
@@ -31,7 +31,7 @@ public VerificationResult DeleteAsync(
/// with the given .
///
public VerificationResult DeleteAsync(
- IParameter? requestUri)
+ IParameter requestUri)
=> verifyInvoked.DeleteAsync(requestUri, It.IsAny());
///
@@ -40,7 +40,7 @@ public VerificationResult DeleteAsync(
/// with the given and .
///
public VerificationResult DeleteAsync(
- IParameter? requestUri,
+ IParameter requestUri,
IParameter cancellationToken)
{
if (verifyInvoked is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -53,7 +53,8 @@ public VerificationResult DeleteAsync(
.Map(httpClientMock.Subject);
}
- throw new MockException("Cannot verify HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot verify HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
///
@@ -62,7 +63,7 @@ public VerificationResult DeleteAsync(
/// with the given and .
///
public VerificationResult DeleteAsync(
- IParameter? requestUri,
+ IParameter requestUri,
IParameter cancellationToken)
{
if (verifyInvoked is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -75,7 +76,8 @@ public VerificationResult DeleteAsync(
.Map(httpClientMock.Subject);
}
- throw new MockException("Cannot verify HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot verify HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
}
}
diff --git a/Source/Mockolate/Web/HttpClientExtensions.Verify.Get.cs b/Source/Mockolate/Web/HttpClientExtensions.Verify.Get.cs
index f3e06baa..7d78de1d 100644
--- a/Source/Mockolate/Web/HttpClientExtensions.Verify.Get.cs
+++ b/Source/Mockolate/Web/HttpClientExtensions.Verify.Get.cs
@@ -22,7 +22,7 @@ public static partial class HttpClientExtensions
/// with the given .
///
public VerificationResult GetAsync(
- IParameter? requestUri)
+ IParameter requestUri)
=> verifyInvoked.GetAsync(requestUri, It.IsAny());
///
@@ -31,7 +31,7 @@ public VerificationResult GetAsync(
/// with the given .
///
public VerificationResult GetAsync(
- IParameter? requestUri)
+ IParameter requestUri)
=> verifyInvoked.GetAsync(requestUri, It.IsAny());
///
@@ -40,7 +40,7 @@ public VerificationResult GetAsync(
/// with the given and .
///
public VerificationResult GetAsync(
- IParameter? requestUri,
+ IParameter requestUri,
IParameter cancellationToken)
{
if (verifyInvoked is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -53,7 +53,8 @@ public VerificationResult GetAsync(
.Map(httpClientMock.Subject);
}
- throw new MockException("Cannot verify HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot verify HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
///
@@ -62,7 +63,7 @@ public VerificationResult GetAsync(
/// with the given and .
///
public VerificationResult GetAsync(
- IParameter? requestUri,
+ IParameter requestUri,
IParameter cancellationToken)
{
if (verifyInvoked is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -75,7 +76,8 @@ public VerificationResult GetAsync(
.Map(httpClientMock.Subject);
}
- throw new MockException("Cannot verify HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot verify HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
}
}
diff --git a/Source/Mockolate/Web/HttpClientExtensions.Verify.Patch.cs b/Source/Mockolate/Web/HttpClientExtensions.Verify.Patch.cs
index 6560eddf..8a4f2159 100644
--- a/Source/Mockolate/Web/HttpClientExtensions.Verify.Patch.cs
+++ b/Source/Mockolate/Web/HttpClientExtensions.Verify.Patch.cs
@@ -23,9 +23,12 @@ public static partial class HttpClientExtensions
/// with the given .
///
public VerificationResult PatchAsync(
- IParameter? requestUri,
- IParameter? content)
- => verifyInvoked.PatchAsync(requestUri, content, It.IsAny());
+ IParameter requestUri,
+ IParameter? content = null)
+ => verifyInvoked.PatchAsync(
+ requestUri,
+ content ?? It.IsAny(),
+ It.IsAny());
///
/// Validates the invocations for the method
@@ -33,9 +36,12 @@ public VerificationResult PatchAsync(
/// with the given .
///
public VerificationResult PatchAsync(
- IParameter? requestUri,
- IParameter? content)
- => verifyInvoked.PatchAsync(requestUri, content, It.IsAny());
+ IParameter requestUri,
+ IParameter? content = null)
+ => verifyInvoked.PatchAsync(
+ requestUri,
+ content ?? It.IsAny(),
+ It.IsAny());
///
/// Validates the invocations for the method
@@ -43,8 +49,8 @@ public VerificationResult PatchAsync(
/// with the given and .
///
public VerificationResult PatchAsync(
- IParameter? requestUri,
- IParameter? content,
+ IParameter requestUri,
+ IParameter content,
IParameter cancellationToken)
{
if (verifyInvoked is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -58,7 +64,8 @@ public VerificationResult PatchAsync(
.Map(httpClientMock.Subject);
}
- throw new MockException("Cannot verify HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot verify HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
///
@@ -67,8 +74,8 @@ public VerificationResult PatchAsync(
/// with the given and .
///
public VerificationResult PatchAsync(
- IParameter? requestUri,
- IParameter? content,
+ IParameter requestUri,
+ IParameter content,
IParameter cancellationToken)
{
if (verifyInvoked is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -82,7 +89,8 @@ public VerificationResult PatchAsync(
.Map(httpClientMock.Subject);
}
- throw new MockException("Cannot verify HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot verify HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
}
}
diff --git a/Source/Mockolate/Web/HttpClientExtensions.Verify.Post.cs b/Source/Mockolate/Web/HttpClientExtensions.Verify.Post.cs
index 3ff4343c..a71e2420 100644
--- a/Source/Mockolate/Web/HttpClientExtensions.Verify.Post.cs
+++ b/Source/Mockolate/Web/HttpClientExtensions.Verify.Post.cs
@@ -22,9 +22,12 @@ public static partial class HttpClientExtensions
/// with the given .
///
public VerificationResult PostAsync(
- IParameter? requestUri,
- IParameter? content)
- => verifyInvoked.PostAsync(requestUri, content, It.IsAny());
+ IParameter requestUri,
+ IParameter? content = null)
+ => verifyInvoked.PostAsync(
+ requestUri,
+ content ?? It.IsAny(),
+ It.IsAny());
///
/// Validates the invocations for the method
@@ -32,9 +35,12 @@ public VerificationResult PostAsync(
/// with the given .
///
public VerificationResult PostAsync(
- IParameter? requestUri,
- IParameter? content)
- => verifyInvoked.PostAsync(requestUri, content, It.IsAny());
+ IParameter requestUri,
+ IParameter? content = null)
+ => verifyInvoked.PostAsync(
+ requestUri,
+ content ?? It.IsAny(),
+ It.IsAny());
///
/// Validates the invocations for the method
@@ -42,8 +48,8 @@ public VerificationResult PostAsync(
/// with the given and .
///
public VerificationResult PostAsync(
- IParameter? requestUri,
- IParameter? content,
+ IParameter requestUri,
+ IParameter content,
IParameter cancellationToken)
{
if (verifyInvoked is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -57,7 +63,8 @@ public VerificationResult PostAsync(
.Map(httpClientMock.Subject);
}
- throw new MockException("Cannot verify HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot verify HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
///
@@ -66,8 +73,8 @@ public VerificationResult PostAsync(
/// with the given and .
///
public VerificationResult PostAsync(
- IParameter? requestUri,
- IParameter? content,
+ IParameter requestUri,
+ IParameter content,
IParameter cancellationToken)
{
if (verifyInvoked is Mock { ConstructorParameters.Length: > 0, } httpClientMock &&
@@ -81,7 +88,8 @@ public VerificationResult PostAsync(
.Map(httpClientMock.Subject);
}
- throw new MockException("Cannot verify HttpClient when it is not mocked with a mockable HttpMessageHandler.");
+ throw new MockException(
+ "Cannot verify HttpClient when it is not mocked with a mockable HttpMessageHandler.");
}
}
}
diff --git a/Source/Mockolate/Web/HttpClientExtensions.Verify.Put.cs b/Source/Mockolate/Web/HttpClientExtensions.Verify.Put.cs
index 27b130ce..69c946bc 100644
--- a/Source/Mockolate/Web/HttpClientExtensions.Verify.Put.cs
+++ b/Source/Mockolate/Web/HttpClientExtensions.Verify.Put.cs
@@ -22,9 +22,12 @@ public static partial class HttpClientExtensions
/// with the given .
///
public VerificationResult PutAsync(
- IParameter? requestUri,
- IParameter? content)
- => verifyInvoked.PutAsync(requestUri, content, It.IsAny());
+ IParameter requestUri,
+ IParameter? content = null)
+ => verifyInvoked.PutAsync(
+ requestUri,
+ content ?? It.IsAny(),
+ It.IsAny());
///
/// Validates the invocations for the method
@@ -32,9 +35,12 @@ public VerificationResult PutAsync(
/// with the given .
///
public VerificationResult PutAsync(
- IParameter? requestUri,
- IParameter? content)
- => verifyInvoked.PutAsync(requestUri, content, It.IsAny());
+ IParameter requestUri,
+ IParameter? content = null)
+ => verifyInvoked.PutAsync(
+ requestUri,
+ content ?? It.IsAny