diff --git a/src/WireMock.Net.Abstractions/Handlers/IFileSystemHandler.cs b/src/WireMock.Net.Abstractions/Handlers/IFileSystemHandler.cs
index 6e0dfe3b..d07ad96c 100644
--- a/src/WireMock.Net.Abstractions/Handlers/IFileSystemHandler.cs
+++ b/src/WireMock.Net.Abstractions/Handlers/IFileSystemHandler.cs
@@ -1,6 +1,5 @@
// Copyright © WireMock.Net
-using JetBrains.Annotations;
using System.Collections.Generic;
namespace WireMock.Handlers;
@@ -21,69 +20,69 @@ public interface IFileSystemHandler
///
/// The path.
/// true if path refers to an existing directory; false if the directory does not exist or an error occurs when trying to determine if the specified directory exists.
- bool FolderExists([NotNull] string path);
+ bool FolderExists(string path);
///
/// Creates all directories and subdirectories in the specified path unless they already exist.
///
/// The path.
- void CreateFolder([NotNull] string path);
+ void CreateFolder(string path);
///
/// Returns an enumerable collection of file names in a specified path.
///
/// The path.
- /// A value indicating whether subdirectories should also included when enumerating files.
+ /// A value indicating whether subdirectories should also be included when enumerating files.
/// An enumerable collection of the full names (including paths) for the files in the directory (and optionally subdirectories) specified by path.
- IEnumerable EnumerateFiles([NotNull] string path, bool includeSubdirectories);
+ IEnumerable EnumerateFiles(string path, bool includeSubdirectories);
///
/// Read a static mapping file as text.
///
/// The path (folder + filename with .json extension).
/// The file content as text.
- string ReadMappingFile([NotNull] string path);
+ string ReadMappingFile(string path);
///
/// Write the static mapping file.
///
/// The path (folder + filename with .json extension).
/// The text.
- void WriteMappingFile([NotNull] string path, [NotNull] string text);
+ void WriteMappingFile(string path, string text);
///
/// Read a response body file as byte[].
///
/// The path or filename from the file to read.
/// The file content as bytes.
- byte[] ReadResponseBodyAsFile([NotNull] string path);
+ byte[] ReadResponseBodyAsFile(string path);
///
/// Read a response body file as text.
///
/// The path or filename from the file to read.
/// The file content as text.
- string ReadResponseBodyAsString([NotNull] string path);
+ string ReadResponseBodyAsString(string path);
///
/// Delete a file.
///
/// The filename.
- void DeleteFile([NotNull] string filename);
+ void DeleteFile(string filename);
///
/// Determines whether the given path refers to an existing file on disk.
///
/// The filename.
/// true if path refers to an existing file; false if the file does not exist.
- bool FileExists([NotNull] string filename);
+ bool FileExists(string filename);
///
/// Write a file.
///
/// The filename.
/// The bytes.
- void WriteFile([NotNull] string filename, [NotNull] byte[] bytes);
+ void WriteFile(string filename, byte[] bytes);
///
/// Write a file.
@@ -91,21 +90,21 @@ public interface IFileSystemHandler
/// The folder.
/// The filename.
/// The bytes.
- void WriteFile([NotNull] string folder, [NotNull] string filename, [NotNull] byte[] bytes);
+ void WriteFile(string folder, string filename, byte[] bytes);
///
/// Read a file as bytes.
///
/// The filename.
/// The file content as bytes.
- byte[] ReadFile([NotNull] string filename);
+ byte[] ReadFile(string filename);
///
/// Read a file as string.
///
/// The filename.
/// The file content as a string.
- string ReadFileAsString([NotNull] string filename);
+ string ReadFileAsString(string filename);
///
/// Gets the folder where the unmatched requests should be stored. For local file system, this would be `{CurrentFolder}/requests/unmatched`.
@@ -114,9 +113,9 @@ public interface IFileSystemHandler
string GetUnmatchedRequestsFolder();
///
- /// Write a unmatched request to the Unmatched RequestsFolder.
+ /// Write an unmatched request to the Unmatched RequestsFolder.
///
/// The filename.
/// The text.
- void WriteUnmatchedRequest([NotNull] string filename, [NotNull] string text);
+ void WriteUnmatchedRequest(string filename, string text);
}
\ No newline at end of file
diff --git a/src/WireMock.Net.FluentAssertions/Assertions/WireMockAssertions.AtUrl.cs b/src/WireMock.Net.FluentAssertions/Assertions/WireMockAssertions.AtUrl.cs
index b9e7ef14..2fe9b0ce 100644
--- a/src/WireMock.Net.FluentAssertions/Assertions/WireMockAssertions.AtUrl.cs
+++ b/src/WireMock.Net.FluentAssertions/Assertions/WireMockAssertions.AtUrl.cs
@@ -1,12 +1,12 @@
// Copyright © WireMock.Net
-#pragma warning disable CS1591
using WireMock.Extensions;
using WireMock.Matchers;
// ReSharper disable once CheckNamespace
namespace WireMock.FluentAssertions;
+#pragma warning disable CS1591
public partial class WireMockAssertions
{
[CustomAssertion]
diff --git a/src/WireMock.Net/Json/JObjectExtensions.cs b/src/WireMock.Net/Json/JObjectExtensions.cs
index 0d0c40ae..203ceb09 100644
--- a/src/WireMock.Net/Json/JObjectExtensions.cs
+++ b/src/WireMock.Net/Json/JObjectExtensions.cs
@@ -1,6 +1,6 @@
// Copyright © WireMock.Net
-// Copied from https://github.com/Handlebars-Net/Handlebars.Net.Helpers/blob/master/src/Handlebars.Net.Helpers.DynamicLinq
+// Copied from https://github.com/Handlebars-Net/Handlebars.Net.Helpers/blob/master/src/Handlebars.Net.Helpers.DynamicLinq which is copied from https://github.com/StefH/JsonConverter
using System;
using System.Collections;
@@ -14,9 +14,7 @@ namespace WireMock.Json;
internal static class JObjectExtensions
{
- private class JTokenResolvers : Dictionary>
- {
- }
+ private class JTokenResolvers : Dictionary>;
private static readonly JTokenResolvers Resolvers = new()
{
@@ -180,7 +178,7 @@ private static IEnumerable ConvertJTokenArray(JToken arg, DynamicJsonClassOption
private static IEnumerable ConvertToTypedArray(IEnumerable