diff --git a/examples/WireMock.Net.Console.NET5/WireMock.Net.Console.NET5.csproj b/examples/WireMock.Net.Console.NET5/WireMock.Net.Console.NET5.csproj
index e49a3c86f..c29d2ac38 100644
--- a/examples/WireMock.Net.Console.NET5/WireMock.Net.Console.NET5.csproj
+++ b/examples/WireMock.Net.Console.NET5/WireMock.Net.Console.NET5.csproj
@@ -28,7 +28,7 @@
-
+
diff --git a/examples/WireMock.Net.Console.NETCoreApp/WireMock.Net.Console.NETCoreApp.csproj b/examples/WireMock.Net.Console.NETCoreApp/WireMock.Net.Console.NETCoreApp.csproj
index a3fbb4a4e..70439a567 100644
--- a/examples/WireMock.Net.Console.NETCoreApp/WireMock.Net.Console.NETCoreApp.csproj
+++ b/examples/WireMock.Net.Console.NETCoreApp/WireMock.Net.Console.NETCoreApp.csproj
@@ -25,7 +25,7 @@
-
+
diff --git a/examples/WireMock.Net.Console.NETCoreApp2/WireMock.Net.Console.NETCoreApp2.csproj b/examples/WireMock.Net.Console.NETCoreApp2/WireMock.Net.Console.NETCoreApp2.csproj
index 6ec928e47..901ec8b7f 100644
--- a/examples/WireMock.Net.Console.NETCoreApp2/WireMock.Net.Console.NETCoreApp2.csproj
+++ b/examples/WireMock.Net.Console.NETCoreApp2/WireMock.Net.Console.NETCoreApp2.csproj
@@ -37,7 +37,7 @@
-
+
diff --git a/examples/WireMock.Net.Console.NETCoreApp3/WireMock.Net.Console.NETCoreApp3.csproj b/examples/WireMock.Net.Console.NETCoreApp3/WireMock.Net.Console.NETCoreApp3.csproj
index 78e8dd124..1757b09b8 100644
--- a/examples/WireMock.Net.Console.NETCoreApp3/WireMock.Net.Console.NETCoreApp3.csproj
+++ b/examples/WireMock.Net.Console.NETCoreApp3/WireMock.Net.Console.NETCoreApp3.csproj
@@ -34,7 +34,7 @@
-
+
diff --git a/examples/WireMock.Net.Console.Net452.Classic/WireMock.Net.Console.Net452.Classic.csproj b/examples/WireMock.Net.Console.Net452.Classic/WireMock.Net.Console.Net452.Classic.csproj
index 70d40b5b6..f7877fdba 100644
--- a/examples/WireMock.Net.Console.Net452.Classic/WireMock.Net.Console.Net452.Classic.csproj
+++ b/examples/WireMock.Net.Console.Net452.Classic/WireMock.Net.Console.Net452.Classic.csproj
@@ -48,8 +48,8 @@
..\..\packages\Handlebars.Net.Helpers.Core.2.1.1-preview-01\lib\net452\HandlebarsDotNet.Helpers.Core.dll
-
- ..\..\packages\log4net.2.0.12\lib\net45\log4net.dll
+
+ ..\..\packages\log4net.2.0.13\lib\net45\log4net.dll
diff --git a/examples/WireMock.Net.Console.Net452.Classic/packages.config b/examples/WireMock.Net.Console.Net452.Classic/packages.config
index 5aef79f8f..cea3a6147 100644
--- a/examples/WireMock.Net.Console.Net452.Classic/packages.config
+++ b/examples/WireMock.Net.Console.Net452.Classic/packages.config
@@ -4,7 +4,7 @@
-
+
diff --git a/examples/WireMock.Net.Console.Net461.Classic/WireMock.Net.Console.Net461.Classic.csproj b/examples/WireMock.Net.Console.Net461.Classic/WireMock.Net.Console.Net461.Classic.csproj
index 312a39e7d..b29e42078 100644
--- a/examples/WireMock.Net.Console.Net461.Classic/WireMock.Net.Console.Net461.Classic.csproj
+++ b/examples/WireMock.Net.Console.Net461.Classic/WireMock.Net.Console.Net461.Classic.csproj
@@ -47,8 +47,8 @@
..\..\packages\Handlebars.Net.Helpers.Core.2.1.1-preview-01\lib\net452\HandlebarsDotNet.Helpers.Core.dll
-
- ..\..\packages\log4net.2.0.12\lib\net45\log4net.dll
+
+ ..\..\packages\log4net.2.0.13\lib\net45\log4net.dll
..\..\packages\Microsoft.Extensions.DependencyInjection.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll
diff --git a/examples/WireMock.Net.Console.Net461.Classic/packages.config b/examples/WireMock.Net.Console.Net461.Classic/packages.config
index eeff03047..4dda04687 100644
--- a/examples/WireMock.Net.Console.Net461.Classic/packages.config
+++ b/examples/WireMock.Net.Console.Net461.Classic/packages.config
@@ -4,7 +4,7 @@
-
+
diff --git a/examples/WireMock.Net.Console.Net472.Classic/WireMock.Net.Console.Net472.Classic.csproj b/examples/WireMock.Net.Console.Net472.Classic/WireMock.Net.Console.Net472.Classic.csproj
index b6aa7714d..32fee8c9c 100644
--- a/examples/WireMock.Net.Console.Net472.Classic/WireMock.Net.Console.Net472.Classic.csproj
+++ b/examples/WireMock.Net.Console.Net472.Classic/WireMock.Net.Console.Net472.Classic.csproj
@@ -57,8 +57,8 @@
..\..\packages\JmesPath.Net.1.0.125\lib\net45\JmesPath.Net.dll
-
- ..\..\packages\log4net.2.0.12\lib\net45\log4net.dll
+
+ ..\..\packages\log4net.2.0.13\lib\net45\log4net.dll
..\..\packages\Microsoft.AspNetCore.2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.dll
diff --git a/examples/WireMock.Net.Console.Net472.Classic/packages.config b/examples/WireMock.Net.Console.Net472.Classic/packages.config
index 027752fee..f325bc7af 100644
--- a/examples/WireMock.Net.Console.Net472.Classic/packages.config
+++ b/examples/WireMock.Net.Console.Net472.Classic/packages.config
@@ -6,7 +6,7 @@
-
+
diff --git a/examples/WireMock.Net.Service/WireMock.Net.Service.csproj b/examples/WireMock.Net.Service/WireMock.Net.Service.csproj
index 48f876f09..1bcfe937d 100644
--- a/examples/WireMock.Net.Service/WireMock.Net.Service.csproj
+++ b/examples/WireMock.Net.Service/WireMock.Net.Service.csproj
@@ -32,8 +32,8 @@
4
-
- ..\..\packages\log4net.2.0.12\lib\net45\log4net.dll
+
+ ..\..\packages\log4net.2.0.13\lib\net45\log4net.dll
..\..\packages\Microsoft.Owin.2.0.2\lib\net45\Microsoft.Owin.dll
diff --git a/examples/WireMock.Net.Service/packages.config b/examples/WireMock.Net.Service/packages.config
index d2bc1dfc9..0f8af02db 100644
--- a/examples/WireMock.Net.Service/packages.config
+++ b/examples/WireMock.Net.Service/packages.config
@@ -1,6 +1,6 @@
-
+
diff --git a/examples/WireMock.Net.StandAlone.NETCoreApp/WireMock.Net.StandAlone.NETCoreApp.csproj b/examples/WireMock.Net.StandAlone.NETCoreApp/WireMock.Net.StandAlone.NETCoreApp.csproj
index 8775a91f9..14aafc3dd 100644
--- a/examples/WireMock.Net.StandAlone.NETCoreApp/WireMock.Net.StandAlone.NETCoreApp.csproj
+++ b/examples/WireMock.Net.StandAlone.NETCoreApp/WireMock.Net.StandAlone.NETCoreApp.csproj
@@ -7,7 +7,7 @@
-
+
diff --git a/examples/WireMock.Net.StandAlone.Net452/WireMock.Net.StandAlone.Net452.csproj b/examples/WireMock.Net.StandAlone.Net452/WireMock.Net.StandAlone.Net452.csproj
index 790e218c7..8467c6891 100644
--- a/examples/WireMock.Net.StandAlone.Net452/WireMock.Net.StandAlone.Net452.csproj
+++ b/examples/WireMock.Net.StandAlone.Net452/WireMock.Net.StandAlone.Net452.csproj
@@ -39,8 +39,8 @@
WireMock.Net.StandAlone.Net452.Program
-
- ..\..\packages\log4net.2.0.12\lib\net45\log4net.dll
+
+ ..\..\packages\log4net.2.0.13\lib\net45\log4net.dll
..\..\packages\Microsoft.Owin.Host.HttpListener.4.0.0\lib\net451\Microsoft.Owin.Host.HttpListener.dll
diff --git a/examples/WireMock.Net.StandAlone.Net452/packages.config b/examples/WireMock.Net.StandAlone.Net452/packages.config
index da1f375a5..15fbcb6c9 100644
--- a/examples/WireMock.Net.StandAlone.Net452/packages.config
+++ b/examples/WireMock.Net.StandAlone.Net452/packages.config
@@ -1,6 +1,6 @@
-
+
diff --git a/src/WireMock.Net.Matchers.CSharpCode/Matchers/CSharpCodeMatcher.cs b/src/WireMock.Net.Matchers.CSharpCode/Matchers/CSharpCodeMatcher.cs
index a92f3771b..5fd1c6009 100644
--- a/src/WireMock.Net.Matchers.CSharpCode/Matchers/CSharpCodeMatcher.cs
+++ b/src/WireMock.Net.Matchers.CSharpCode/Matchers/CSharpCodeMatcher.cs
@@ -8,7 +8,7 @@
using WireMock.Exceptions;
using WireMock.Extensions;
using WireMock.Models;
-using WireMock.Validation;
+using Stef.Validation;
namespace WireMock.Matchers
{
@@ -53,7 +53,7 @@ public CSharpCodeMatcher([NotNull] params AnyOf[] pattern
/// The patterns.
public CSharpCodeMatcher(MatchBehaviour matchBehaviour, [NotNull] params AnyOf[] patterns)
{
- Check.NotNull(patterns, nameof(patterns));
+ Guard.NotNull(patterns, nameof(patterns));
MatchBehaviour = matchBehaviour;
ThrowException = false;
diff --git a/src/WireMock.Net.OpenApiParser/WireMock.Net.OpenApiParser.csproj b/src/WireMock.Net.OpenApiParser/WireMock.Net.OpenApiParser.csproj
index 46560c31d..c94529081 100644
--- a/src/WireMock.Net.OpenApiParser/WireMock.Net.OpenApiParser.csproj
+++ b/src/WireMock.Net.OpenApiParser/WireMock.Net.OpenApiParser.csproj
@@ -26,7 +26,7 @@
-
+
diff --git a/src/WireMock.Net.StandAlone/StandAloneApp.cs b/src/WireMock.Net.StandAlone/StandAloneApp.cs
index f86f49437..73a5b4d6b 100644
--- a/src/WireMock.Net.StandAlone/StandAloneApp.cs
+++ b/src/WireMock.Net.StandAlone/StandAloneApp.cs
@@ -4,7 +4,7 @@
using WireMock.Logging;
using WireMock.Server;
using WireMock.Settings;
-using WireMock.Validation;
+using Stef.Validation;
namespace WireMock.Net.StandAlone
{
@@ -22,7 +22,7 @@ public static class StandAloneApp
[PublicAPI]
public static WireMockServer Start([NotNull] IWireMockServerSettings settings)
{
- Check.NotNull(settings, nameof(settings));
+ Guard.NotNull(settings, nameof(settings));
var server = WireMockServer.Start(settings);
@@ -40,7 +40,7 @@ public static WireMockServer Start([NotNull] IWireMockServerSettings settings)
[PublicAPI]
public static WireMockServer Start([NotNull] string[] args, [CanBeNull] IWireMockLogger logger = null)
{
- Check.NotNull(args, nameof(args));
+ Guard.NotNull(args, nameof(args));
if (WireMockServerSettingsParser.TryParseArguments(args, out var settings, logger))
{
@@ -62,7 +62,7 @@ public static WireMockServer Start([NotNull] string[] args, [CanBeNull] IWireMoc
[PublicAPI]
public static bool TryStart([NotNull] string[] args, out WireMockServer server, [CanBeNull] IWireMockLogger logger = null)
{
- Check.NotNull(args, nameof(args));
+ Guard.NotNull(args, nameof(args));
if (WireMockServerSettingsParser.TryParseArguments(args, out var settings, logger))
{
diff --git a/src/WireMock.Net/Handlers/LocalFileSystemHandler.cs b/src/WireMock.Net/Handlers/LocalFileSystemHandler.cs
index 1ce7ef3c0..e96b47791 100644
--- a/src/WireMock.Net/Handlers/LocalFileSystemHandler.cs
+++ b/src/WireMock.Net/Handlers/LocalFileSystemHandler.cs
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.IO;
using WireMock.Util;
-using WireMock.Validation;
+using Stef.Validation;
namespace WireMock.Handlers
{
@@ -34,7 +34,7 @@ public LocalFileSystemHandler(string rootFolder)
///
public virtual bool FolderExists(string path)
{
- Check.NotNullOrEmpty(path, nameof(path));
+ Guard.NotNullOrEmpty(path, nameof(path));
return Directory.Exists(path);
}
@@ -42,7 +42,7 @@ public virtual bool FolderExists(string path)
///
public virtual void CreateFolder(string path)
{
- Check.NotNullOrEmpty(path, nameof(path));
+ Guard.NotNullOrEmpty(path, nameof(path));
Directory.CreateDirectory(path);
}
@@ -50,7 +50,7 @@ public virtual void CreateFolder(string path)
///
public virtual IEnumerable EnumerateFiles(string path, bool includeSubdirectories)
{
- Check.NotNullOrEmpty(path, nameof(path));
+ Guard.NotNullOrEmpty(path, nameof(path));
return includeSubdirectories ? Directory.EnumerateFiles(path, "*", SearchOption.AllDirectories) : Directory.EnumerateFiles(path);
}
@@ -64,7 +64,7 @@ public virtual string GetMappingFolder()
///
public virtual string ReadMappingFile(string path)
{
- Check.NotNullOrEmpty(path, nameof(path));
+ Guard.NotNullOrEmpty(path, nameof(path));
return File.ReadAllText(path);
}
@@ -72,8 +72,8 @@ public virtual string ReadMappingFile(string path)
///
public virtual void WriteMappingFile(string path, string text)
{
- Check.NotNullOrEmpty(path, nameof(path));
- Check.NotNull(text, nameof(text));
+ Guard.NotNullOrEmpty(path, nameof(path));
+ Guard.NotNull(text, nameof(text));
File.WriteAllText(path, text);
}
@@ -81,7 +81,7 @@ public virtual void WriteMappingFile(string path, string text)
///
public virtual byte[] ReadResponseBodyAsFile(string path)
{
- Check.NotNullOrEmpty(path, nameof(path));
+ Guard.NotNullOrEmpty(path, nameof(path));
path = PathUtils.CleanPath(path);
// If the file exists at the given path relative to the MappingsFolder, then return that.
// Else the path will just be as-is.
@@ -91,7 +91,7 @@ public virtual byte[] ReadResponseBodyAsFile(string path)
///
public virtual string ReadResponseBodyAsString(string path)
{
- Check.NotNullOrEmpty(path, nameof(path));
+ Guard.NotNullOrEmpty(path, nameof(path));
path = PathUtils.CleanPath(path);
// In case the path is a filename, the path will be adjusted to the MappingFolder.
// Else the path will just be as-is.
@@ -101,7 +101,7 @@ public virtual string ReadResponseBodyAsString(string path)
///
public virtual bool FileExists(string filename)
{
- Check.NotNullOrEmpty(filename, nameof(filename));
+ Guard.NotNullOrEmpty(filename, nameof(filename));
return File.Exists(AdjustPathForMappingFolder(filename));
}
@@ -109,8 +109,8 @@ public virtual bool FileExists(string filename)
///
public virtual void WriteFile(string filename, byte[] bytes)
{
- Check.NotNullOrEmpty(filename, nameof(filename));
- Check.NotNull(bytes, nameof(bytes));
+ Guard.NotNullOrEmpty(filename, nameof(filename));
+ Guard.NotNull(bytes, nameof(bytes));
File.WriteAllBytes(AdjustPathForMappingFolder(filename), bytes);
}
@@ -118,7 +118,7 @@ public virtual void WriteFile(string filename, byte[] bytes)
///
public virtual void DeleteFile(string filename)
{
- Check.NotNullOrEmpty(filename, nameof(filename));
+ Guard.NotNullOrEmpty(filename, nameof(filename));
File.Delete(AdjustPathForMappingFolder(filename));
}
@@ -126,7 +126,7 @@ public virtual void DeleteFile(string filename)
///
public virtual byte[] ReadFile(string filename)
{
- Check.NotNullOrEmpty(filename, nameof(filename));
+ Guard.NotNullOrEmpty(filename, nameof(filename));
return File.ReadAllBytes(AdjustPathForMappingFolder(filename));
}
@@ -134,7 +134,7 @@ public virtual byte[] ReadFile(string filename)
///
public virtual string ReadFileAsString(string filename)
{
- return File.ReadAllText(AdjustPathForMappingFolder(Check.NotNullOrEmpty(filename, nameof(filename))));
+ return File.ReadAllText(AdjustPathForMappingFolder(Guard.NotNullOrEmpty(filename, nameof(filename))));
}
///
@@ -146,8 +146,8 @@ public virtual string GetUnmatchedRequestsFolder()
///
public virtual void WriteUnmatchedRequest(string filename, string text)
{
- Check.NotNullOrEmpty(filename, nameof(filename));
- Check.NotNull(text, nameof(text));
+ Guard.NotNullOrEmpty(filename, nameof(filename));
+ Guard.NotNull(text, nameof(text));
var folder = GetUnmatchedRequestsFolder();
if (!FolderExists(folder))
diff --git a/src/WireMock.Net/Http/ByteArrayContentHelper.cs b/src/WireMock.Net/Http/ByteArrayContentHelper.cs
index 44d15bde8..14dcc5ecb 100644
--- a/src/WireMock.Net/Http/ByteArrayContentHelper.cs
+++ b/src/WireMock.Net/Http/ByteArrayContentHelper.cs
@@ -1,7 +1,7 @@
using System.Net.Http;
using System.Net.Http.Headers;
using JetBrains.Annotations;
-using WireMock.Validation;
+using Stef.Validation;
namespace WireMock.Http
{
@@ -15,7 +15,7 @@ internal static class ByteArrayContentHelper
/// ByteArrayContent
internal static ByteArrayContent Create([NotNull] byte[] content, [CanBeNull] MediaTypeHeaderValue contentType)
{
- Check.NotNull(content, nameof(content));
+ Guard.NotNull(content, nameof(content));
var byteContent = new ByteArrayContent(content);
if (contentType != null)
diff --git a/src/WireMock.Net/Http/HttpRequestMessageHelper.cs b/src/WireMock.Net/Http/HttpRequestMessageHelper.cs
index b437e6da0..6404002bb 100644
--- a/src/WireMock.Net/Http/HttpRequestMessageHelper.cs
+++ b/src/WireMock.Net/Http/HttpRequestMessageHelper.cs
@@ -6,7 +6,7 @@
using JetBrains.Annotations;
using Newtonsoft.Json;
using WireMock.Types;
-using WireMock.Validation;
+using Stef.Validation;
namespace WireMock.Http
{
@@ -14,8 +14,8 @@ internal static class HttpRequestMessageHelper
{
internal static HttpRequestMessage Create([NotNull] RequestMessage requestMessage, [NotNull] string url)
{
- Check.NotNull(requestMessage, nameof(requestMessage));
- Check.NotNullOrEmpty(url, nameof(url));
+ Guard.NotNull(requestMessage, nameof(requestMessage));
+ Guard.NotNullOrEmpty(url, nameof(url));
var httpRequestMessage = new HttpRequestMessage(new HttpMethod(requestMessage.Method), url);
diff --git a/src/WireMock.Net/Http/StringContentHelper.cs b/src/WireMock.Net/Http/StringContentHelper.cs
index f71b55e47..671ca593d 100644
--- a/src/WireMock.Net/Http/StringContentHelper.cs
+++ b/src/WireMock.Net/Http/StringContentHelper.cs
@@ -1,7 +1,7 @@
using System.Net.Http;
using System.Net.Http.Headers;
using JetBrains.Annotations;
-using WireMock.Validation;
+using Stef.Validation;
namespace WireMock.Http
{
@@ -15,7 +15,7 @@ internal static class StringContentHelper
/// StringContent
internal static StringContent Create([NotNull] string content, [CanBeNull] MediaTypeHeaderValue contentType)
{
- Check.NotNull(content, nameof(content));
+ Guard.NotNull(content, nameof(content));
var stringContent = new StringContent(content);
stringContent.Headers.ContentType = contentType;
diff --git a/src/WireMock.Net/Http/WebhookSender.cs b/src/WireMock.Net/Http/WebhookSender.cs
index bcd065983..fc827bf45 100644
--- a/src/WireMock.Net/Http/WebhookSender.cs
+++ b/src/WireMock.Net/Http/WebhookSender.cs
@@ -11,7 +11,7 @@
using WireMock.Transformers.Scriban;
using WireMock.Types;
using WireMock.Util;
-using WireMock.Validation;
+using Stef.Validation;
namespace WireMock.Http
{
@@ -28,10 +28,10 @@ public WebhookSender(IWireMockServerSettings settings)
public Task SendAsync([NotNull] HttpClient client, [NotNull] IWebhookRequest request, [NotNull] RequestMessage originalRequestMessage, [NotNull] ResponseMessage originalResponseMessage)
{
- Check.NotNull(client, nameof(client));
- Check.NotNull(request, nameof(request));
- Check.NotNull(originalRequestMessage, nameof(originalRequestMessage));
- Check.NotNull(originalResponseMessage, nameof(originalResponseMessage));
+ Guard.NotNull(client, nameof(client));
+ Guard.NotNull(request, nameof(request));
+ Guard.NotNull(originalRequestMessage, nameof(originalRequestMessage));
+ Guard.NotNull(originalResponseMessage, nameof(originalResponseMessage));
IBodyData bodyData;
IDictionary> headers;
diff --git a/src/WireMock.Net/Matchers/ExactMatcher.cs b/src/WireMock.Net/Matchers/ExactMatcher.cs
index 4568544e1..e9f301e79 100644
--- a/src/WireMock.Net/Matchers/ExactMatcher.cs
+++ b/src/WireMock.Net/Matchers/ExactMatcher.cs
@@ -3,7 +3,7 @@
using JetBrains.Annotations;
using WireMock.Extensions;
using WireMock.Models;
-using WireMock.Validation;
+using Stef.Validation;
namespace WireMock.Matchers
{
@@ -37,7 +37,7 @@ public ExactMatcher([NotNull] params AnyOf[] values) : th
/// The values.
public ExactMatcher(MatchBehaviour matchBehaviour, bool throwException = false, [NotNull] params AnyOf[] values)
{
- Check.NotNull(values, nameof(values));
+ Guard.NotNull(values, nameof(values));
MatchBehaviour = matchBehaviour;
ThrowException = throwException;
diff --git a/src/WireMock.Net/Matchers/ExactObjectMatcher.cs b/src/WireMock.Net/Matchers/ExactObjectMatcher.cs
index ce8af29f3..fe1166686 100644
--- a/src/WireMock.Net/Matchers/ExactObjectMatcher.cs
+++ b/src/WireMock.Net/Matchers/ExactObjectMatcher.cs
@@ -1,6 +1,6 @@
using JetBrains.Annotations;
using System.Linq;
-using WireMock.Validation;
+using Stef.Validation;
namespace WireMock.Matchers
{
@@ -41,7 +41,7 @@ public ExactObjectMatcher([NotNull] object value) : this(MatchBehaviour.AcceptOn
/// The value.
public ExactObjectMatcher(MatchBehaviour matchBehaviour, [NotNull] object value)
{
- Check.NotNull(value, nameof(value));
+ Guard.NotNull(value, nameof(value));
ValueAsObject = value;
MatchBehaviour = matchBehaviour;
@@ -63,7 +63,7 @@ public ExactObjectMatcher([NotNull] byte[] value) : this(MatchBehaviour.AcceptOn
/// The value.
public ExactObjectMatcher(MatchBehaviour matchBehaviour, [NotNull] byte[] value, bool throwException = false)
{
- Check.NotNull(value, nameof(value));
+ Guard.NotNull(value, nameof(value));
MatchBehaviour = matchBehaviour;
ThrowException = throwException;
diff --git a/src/WireMock.Net/Matchers/JSONPathMatcher.cs b/src/WireMock.Net/Matchers/JSONPathMatcher.cs
index 4f95d5b97..ba951d52f 100644
--- a/src/WireMock.Net/Matchers/JSONPathMatcher.cs
+++ b/src/WireMock.Net/Matchers/JSONPathMatcher.cs
@@ -5,7 +5,7 @@
using Newtonsoft.Json.Linq;
using WireMock.Extensions;
using WireMock.Models;
-using WireMock.Validation;
+using Stef.Validation;
namespace WireMock.Matchers
{
@@ -48,7 +48,7 @@ public JsonPathMatcher([NotNull] params AnyOf[] patterns)
/// The patterns.
public JsonPathMatcher(MatchBehaviour matchBehaviour, bool throwException = false, [NotNull] params AnyOf[] patterns)
{
- Check.NotNull(patterns, nameof(patterns));
+ Guard.NotNull(patterns, nameof(patterns));
MatchBehaviour = matchBehaviour;
ThrowException = throwException;
diff --git a/src/WireMock.Net/Matchers/JmesPathMatcher.cs b/src/WireMock.Net/Matchers/JmesPathMatcher.cs
index 368d42b4f..41e8117ab 100644
--- a/src/WireMock.Net/Matchers/JmesPathMatcher.cs
+++ b/src/WireMock.Net/Matchers/JmesPathMatcher.cs
@@ -5,7 +5,7 @@
using System.Linq;
using WireMock.Extensions;
using WireMock.Models;
-using WireMock.Validation;
+using Stef.Validation;
namespace WireMock.Matchers
{
@@ -55,7 +55,7 @@ public JmesPathMatcher(bool throwException = false, [NotNull] params AnyOfThe patterns.
public JmesPathMatcher(MatchBehaviour matchBehaviour, bool throwException = false, [NotNull] params AnyOf[] patterns)
{
- Check.NotNull(patterns, nameof(patterns));
+ Guard.NotNull(patterns, nameof(patterns));
MatchBehaviour = matchBehaviour;
ThrowException = throwException;
diff --git a/src/WireMock.Net/Matchers/JsonMatcher.cs b/src/WireMock.Net/Matchers/JsonMatcher.cs
index e37d7fbc1..e3d6eed97 100644
--- a/src/WireMock.Net/Matchers/JsonMatcher.cs
+++ b/src/WireMock.Net/Matchers/JsonMatcher.cs
@@ -5,7 +5,7 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using WireMock.Util;
-using WireMock.Validation;
+using Stef.Validation;
namespace WireMock.Matchers
{
@@ -61,7 +61,7 @@ public JsonMatcher([NotNull] object value, bool ignoreCase = false, bool throwEx
/// Throw an exception when the internal matching fails because of invalid input.
public JsonMatcher(MatchBehaviour matchBehaviour, [NotNull] object value, bool ignoreCase = false, bool throwException = false)
{
- Check.NotNull(value, nameof(value));
+ Guard.NotNull(value, nameof(value));
MatchBehaviour = matchBehaviour;
IgnoreCase = ignoreCase;
diff --git a/src/WireMock.Net/Matchers/LinqMatcher.cs b/src/WireMock.Net/Matchers/LinqMatcher.cs
index 19efe9ae1..76330fabb 100644
--- a/src/WireMock.Net/Matchers/LinqMatcher.cs
+++ b/src/WireMock.Net/Matchers/LinqMatcher.cs
@@ -6,7 +6,7 @@
using WireMock.Extensions;
using WireMock.Models;
using WireMock.Util;
-using WireMock.Validation;
+using Stef.Validation;
namespace WireMock.Matchers
{
@@ -57,7 +57,7 @@ public LinqMatcher(MatchBehaviour matchBehaviour, [NotNull] AnyOfThrow an exception when the internal matching fails because of invalid input.
public LinqMatcher(MatchBehaviour matchBehaviour, bool throwException = false, [NotNull] params AnyOf[] patterns)
{
- Check.NotNull(patterns, nameof(patterns));
+ Guard.NotNull(patterns, nameof(patterns));
MatchBehaviour = matchBehaviour;
ThrowException = throwException;
diff --git a/src/WireMock.Net/Matchers/RegexMatcher.cs b/src/WireMock.Net/Matchers/RegexMatcher.cs
index 8ee94cae8..f85fd582c 100644
--- a/src/WireMock.Net/Matchers/RegexMatcher.cs
+++ b/src/WireMock.Net/Matchers/RegexMatcher.cs
@@ -6,7 +6,7 @@
using WireMock.Extensions;
using WireMock.Models;
using WireMock.RegularExpressions;
-using WireMock.Validation;
+using Stef.Validation;
namespace WireMock.Matchers
{
@@ -61,7 +61,7 @@ public RegexMatcher(MatchBehaviour matchBehaviour, [NotNull, RegexPattern] AnyOf
/// Use RegexExtended (default = true).
public RegexMatcher(MatchBehaviour matchBehaviour, [NotNull, RegexPattern] AnyOf[] patterns, bool ignoreCase = false, bool throwException = false, bool useRegexExtended = true)
{
- Check.NotNull(patterns, nameof(patterns));
+ Guard.NotNull(patterns, nameof(patterns));
_patterns = patterns;
IgnoreCase = ignoreCase;
diff --git a/src/WireMock.Net/Matchers/Request/RequestMessageBodyMatcher.cs b/src/WireMock.Net/Matchers/Request/RequestMessageBodyMatcher.cs
index 89df34ff3..36d3a3da6 100644
--- a/src/WireMock.Net/Matchers/Request/RequestMessageBodyMatcher.cs
+++ b/src/WireMock.Net/Matchers/Request/RequestMessageBodyMatcher.cs
@@ -3,7 +3,7 @@
using System.Linq;
using WireMock.Types;
using WireMock.Util;
-using WireMock.Validation;
+using Stef.Validation;
namespace WireMock.Matchers.Request
{
@@ -70,7 +70,7 @@ public class RequestMessageBodyMatcher : IRequestMatcher
/// The function.
public RequestMessageBodyMatcher([NotNull] Func func)
{
- Check.NotNull(func, nameof(func));
+ Guard.NotNull(func, nameof(func));
Func = func;
}
@@ -80,7 +80,7 @@ public RequestMessageBodyMatcher([NotNull] Func func)
/// The function.
public RequestMessageBodyMatcher([NotNull] Func func)
{
- Check.NotNull(func, nameof(func));
+ Guard.NotNull(func, nameof(func));
DataFunc = func;
}
@@ -90,7 +90,7 @@ public RequestMessageBodyMatcher([NotNull] Func func)
/// The function.
public RequestMessageBodyMatcher([NotNull] Func