-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
3,587 additions
and
0 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
test/MockHttp.Json.Tests/PublicApiTests.Api_has_not_changed.NET_6.0.verified.txt
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,65 @@ | ||
[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/skwasjer/MockHttp")] | ||
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName=".NET 6.0")] | ||
namespace MockHttp.Json | ||
{ | ||
public interface IJsonAdapter | ||
{ | ||
string Serialize(object? value); | ||
} | ||
public static class JsonRequestMatchingExtensions | ||
{ | ||
public static MockHttp.RequestMatching JsonBody<T>(this MockHttp.RequestMatching builder, T content) { } | ||
public static MockHttp.RequestMatching JsonBody<T>(this MockHttp.RequestMatching builder, T body, MockHttp.Json.IJsonAdapter? adapter) { } | ||
} | ||
public static class MockConfigurationExtensions | ||
{ | ||
public static MockHttp.IMockConfiguration UseJsonAdapter(this MockHttp.IMockConfiguration mockConfig, MockHttp.Json.IJsonAdapter jsonAdapter) { } | ||
} | ||
public static class ResponseBuilderExtensions | ||
{ | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, System.Func<T> jsonContentFactory, System.Text.Encoding? encoding = null, MockHttp.Json.IJsonAdapter? adapter = null) { } | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, T jsonContent, System.Text.Encoding? encoding = null, MockHttp.Json.IJsonAdapter? adapter = null) { } | ||
} | ||
} | ||
namespace MockHttp.Json.Newtonsoft | ||
{ | ||
public static class MockConfigurationExtensions | ||
{ | ||
public static MockHttp.IMockConfiguration UseNewtonsoftJson(this MockHttp.IMockConfiguration mockConfig, Newtonsoft.Json.JsonSerializerSettings? serializerSettings = null) { } | ||
} | ||
public class NewtonsoftAdapter : MockHttp.Json.IJsonAdapter | ||
{ | ||
public NewtonsoftAdapter(Newtonsoft.Json.JsonSerializerSettings? settings = null) { } | ||
public string Serialize(object? value) { } | ||
} | ||
public static class RequestMatchingExtensions | ||
{ | ||
public static MockHttp.RequestMatching JsonBody<T>(this MockHttp.RequestMatching builder, T body, Newtonsoft.Json.JsonSerializerSettings? serializerSettings) { } | ||
} | ||
public static class ResponseBuilderExtensions | ||
{ | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, System.Func<T> jsonContentFactory, System.Text.Encoding? encoding = null, Newtonsoft.Json.JsonSerializerSettings? serializerSettings = null) { } | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, T jsonContent, System.Text.Encoding? encoding = null, Newtonsoft.Json.JsonSerializerSettings? serializerSettings = null) { } | ||
} | ||
} | ||
namespace MockHttp.Json.SystemTextJson | ||
{ | ||
public static class MockConfigurationExtensions | ||
{ | ||
public static MockHttp.IMockConfiguration UseSystemTextJson(this MockHttp.IMockConfiguration mockConfig, System.Text.Json.JsonSerializerOptions? options = null) { } | ||
} | ||
public static class RequestMatchingExtensions | ||
{ | ||
public static MockHttp.RequestMatching JsonBody<T>(this MockHttp.RequestMatching builder, T body, System.Text.Json.JsonSerializerOptions? serializerOptions) { } | ||
} | ||
public static class ResponseBuilderExtensions | ||
{ | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, System.Func<T> jsonContentFactory, System.Text.Encoding? encoding = null, System.Text.Json.JsonSerializerOptions? serializerOptions = null) { } | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, T jsonContent, System.Text.Encoding? encoding = null, System.Text.Json.JsonSerializerOptions? serializerOptions = null) { } | ||
} | ||
public sealed class SystemTextJsonAdapter : MockHttp.Json.IJsonAdapter | ||
{ | ||
public SystemTextJsonAdapter(System.Text.Json.JsonSerializerOptions? options = null) { } | ||
public string Serialize(object? value) { } | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
test/MockHttp.Json.Tests/PublicApiTests.Api_has_not_changed.NET_8.0.verified.txt
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,65 @@ | ||
[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/skwasjer/MockHttp")] | ||
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName=".NET 8.0")] | ||
namespace MockHttp.Json | ||
{ | ||
public interface IJsonAdapter | ||
{ | ||
string Serialize(object? value); | ||
} | ||
public static class JsonRequestMatchingExtensions | ||
{ | ||
public static MockHttp.RequestMatching JsonBody<T>(this MockHttp.RequestMatching builder, T content) { } | ||
public static MockHttp.RequestMatching JsonBody<T>(this MockHttp.RequestMatching builder, T body, MockHttp.Json.IJsonAdapter? adapter) { } | ||
} | ||
public static class MockConfigurationExtensions | ||
{ | ||
public static MockHttp.IMockConfiguration UseJsonAdapter(this MockHttp.IMockConfiguration mockConfig, MockHttp.Json.IJsonAdapter jsonAdapter) { } | ||
} | ||
public static class ResponseBuilderExtensions | ||
{ | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, System.Func<T> jsonContentFactory, System.Text.Encoding? encoding = null, MockHttp.Json.IJsonAdapter? adapter = null) { } | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, T jsonContent, System.Text.Encoding? encoding = null, MockHttp.Json.IJsonAdapter? adapter = null) { } | ||
} | ||
} | ||
namespace MockHttp.Json.Newtonsoft | ||
{ | ||
public static class MockConfigurationExtensions | ||
{ | ||
public static MockHttp.IMockConfiguration UseNewtonsoftJson(this MockHttp.IMockConfiguration mockConfig, Newtonsoft.Json.JsonSerializerSettings? serializerSettings = null) { } | ||
} | ||
public class NewtonsoftAdapter : MockHttp.Json.IJsonAdapter | ||
{ | ||
public NewtonsoftAdapter(Newtonsoft.Json.JsonSerializerSettings? settings = null) { } | ||
public string Serialize(object? value) { } | ||
} | ||
public static class RequestMatchingExtensions | ||
{ | ||
public static MockHttp.RequestMatching JsonBody<T>(this MockHttp.RequestMatching builder, T body, Newtonsoft.Json.JsonSerializerSettings? serializerSettings) { } | ||
} | ||
public static class ResponseBuilderExtensions | ||
{ | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, System.Func<T> jsonContentFactory, System.Text.Encoding? encoding = null, Newtonsoft.Json.JsonSerializerSettings? serializerSettings = null) { } | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, T jsonContent, System.Text.Encoding? encoding = null, Newtonsoft.Json.JsonSerializerSettings? serializerSettings = null) { } | ||
} | ||
} | ||
namespace MockHttp.Json.SystemTextJson | ||
{ | ||
public static class MockConfigurationExtensions | ||
{ | ||
public static MockHttp.IMockConfiguration UseSystemTextJson(this MockHttp.IMockConfiguration mockConfig, System.Text.Json.JsonSerializerOptions? options = null) { } | ||
} | ||
public static class RequestMatchingExtensions | ||
{ | ||
public static MockHttp.RequestMatching JsonBody<T>(this MockHttp.RequestMatching builder, T body, System.Text.Json.JsonSerializerOptions? serializerOptions) { } | ||
} | ||
public static class ResponseBuilderExtensions | ||
{ | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, System.Func<T> jsonContentFactory, System.Text.Encoding? encoding = null, System.Text.Json.JsonSerializerOptions? serializerOptions = null) { } | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, T jsonContent, System.Text.Encoding? encoding = null, System.Text.Json.JsonSerializerOptions? serializerOptions = null) { } | ||
} | ||
public sealed class SystemTextJsonAdapter : MockHttp.Json.IJsonAdapter | ||
{ | ||
public SystemTextJsonAdapter(System.Text.Json.JsonSerializerOptions? options = null) { } | ||
public string Serialize(object? value) { } | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
test/MockHttp.Json.Tests/PublicApiTests.Api_has_not_changed.NET_Framework_4.6.2.verified.txt
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,65 @@ | ||
[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/skwasjer/MockHttp")] | ||
[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.6.2", FrameworkDisplayName=".NET Framework 4.6.2")] | ||
namespace MockHttp.Json | ||
{ | ||
public interface IJsonAdapter | ||
{ | ||
string Serialize(object? value); | ||
} | ||
public static class JsonRequestMatchingExtensions | ||
{ | ||
public static MockHttp.RequestMatching JsonBody<T>(this MockHttp.RequestMatching builder, T content) { } | ||
public static MockHttp.RequestMatching JsonBody<T>(this MockHttp.RequestMatching builder, T body, MockHttp.Json.IJsonAdapter? adapter) { } | ||
} | ||
public static class MockConfigurationExtensions | ||
{ | ||
public static MockHttp.IMockConfiguration UseJsonAdapter(this MockHttp.IMockConfiguration mockConfig, MockHttp.Json.IJsonAdapter jsonAdapter) { } | ||
} | ||
public static class ResponseBuilderExtensions | ||
{ | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, System.Func<T> jsonContentFactory, System.Text.Encoding? encoding = null, MockHttp.Json.IJsonAdapter? adapter = null) { } | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, T jsonContent, System.Text.Encoding? encoding = null, MockHttp.Json.IJsonAdapter? adapter = null) { } | ||
} | ||
} | ||
namespace MockHttp.Json.Newtonsoft | ||
{ | ||
public static class MockConfigurationExtensions | ||
{ | ||
public static MockHttp.IMockConfiguration UseNewtonsoftJson(this MockHttp.IMockConfiguration mockConfig, Newtonsoft.Json.JsonSerializerSettings? serializerSettings = null) { } | ||
} | ||
public class NewtonsoftAdapter : MockHttp.Json.IJsonAdapter | ||
{ | ||
public NewtonsoftAdapter(Newtonsoft.Json.JsonSerializerSettings? settings = null) { } | ||
public string Serialize(object? value) { } | ||
} | ||
public static class RequestMatchingExtensions | ||
{ | ||
public static MockHttp.RequestMatching JsonBody<T>(this MockHttp.RequestMatching builder, T body, Newtonsoft.Json.JsonSerializerSettings? serializerSettings) { } | ||
} | ||
public static class ResponseBuilderExtensions | ||
{ | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, System.Func<T> jsonContentFactory, System.Text.Encoding? encoding = null, Newtonsoft.Json.JsonSerializerSettings? serializerSettings = null) { } | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, T jsonContent, System.Text.Encoding? encoding = null, Newtonsoft.Json.JsonSerializerSettings? serializerSettings = null) { } | ||
} | ||
} | ||
namespace MockHttp.Json.SystemTextJson | ||
{ | ||
public static class MockConfigurationExtensions | ||
{ | ||
public static MockHttp.IMockConfiguration UseSystemTextJson(this MockHttp.IMockConfiguration mockConfig, System.Text.Json.JsonSerializerOptions? options = null) { } | ||
} | ||
public static class RequestMatchingExtensions | ||
{ | ||
public static MockHttp.RequestMatching JsonBody<T>(this MockHttp.RequestMatching builder, T body, System.Text.Json.JsonSerializerOptions? serializerOptions) { } | ||
} | ||
public static class ResponseBuilderExtensions | ||
{ | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, System.Func<T> jsonContentFactory, System.Text.Encoding? encoding = null, System.Text.Json.JsonSerializerOptions? serializerOptions = null) { } | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, T jsonContent, System.Text.Encoding? encoding = null, System.Text.Json.JsonSerializerOptions? serializerOptions = null) { } | ||
} | ||
public sealed class SystemTextJsonAdapter : MockHttp.Json.IJsonAdapter | ||
{ | ||
public SystemTextJsonAdapter(System.Text.Json.JsonSerializerOptions? options = null) { } | ||
public string Serialize(object? value) { } | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
test/MockHttp.Json.Tests/PublicApiTests.Api_has_not_changed.NET_Framework_4.7.2.verified.txt
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,65 @@ | ||
[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/skwasjer/MockHttp")] | ||
[assembly: System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName=".NET Framework 4.7.2")] | ||
namespace MockHttp.Json | ||
{ | ||
public interface IJsonAdapter | ||
{ | ||
string Serialize(object? value); | ||
} | ||
public static class JsonRequestMatchingExtensions | ||
{ | ||
public static MockHttp.RequestMatching JsonBody<T>(this MockHttp.RequestMatching builder, T content) { } | ||
public static MockHttp.RequestMatching JsonBody<T>(this MockHttp.RequestMatching builder, T body, MockHttp.Json.IJsonAdapter? adapter) { } | ||
} | ||
public static class MockConfigurationExtensions | ||
{ | ||
public static MockHttp.IMockConfiguration UseJsonAdapter(this MockHttp.IMockConfiguration mockConfig, MockHttp.Json.IJsonAdapter jsonAdapter) { } | ||
} | ||
public static class ResponseBuilderExtensions | ||
{ | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, System.Func<T> jsonContentFactory, System.Text.Encoding? encoding = null, MockHttp.Json.IJsonAdapter? adapter = null) { } | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, T jsonContent, System.Text.Encoding? encoding = null, MockHttp.Json.IJsonAdapter? adapter = null) { } | ||
} | ||
} | ||
namespace MockHttp.Json.Newtonsoft | ||
{ | ||
public static class MockConfigurationExtensions | ||
{ | ||
public static MockHttp.IMockConfiguration UseNewtonsoftJson(this MockHttp.IMockConfiguration mockConfig, Newtonsoft.Json.JsonSerializerSettings? serializerSettings = null) { } | ||
} | ||
public class NewtonsoftAdapter : MockHttp.Json.IJsonAdapter | ||
{ | ||
public NewtonsoftAdapter(Newtonsoft.Json.JsonSerializerSettings? settings = null) { } | ||
public string Serialize(object? value) { } | ||
} | ||
public static class RequestMatchingExtensions | ||
{ | ||
public static MockHttp.RequestMatching JsonBody<T>(this MockHttp.RequestMatching builder, T body, Newtonsoft.Json.JsonSerializerSettings? serializerSettings) { } | ||
} | ||
public static class ResponseBuilderExtensions | ||
{ | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, System.Func<T> jsonContentFactory, System.Text.Encoding? encoding = null, Newtonsoft.Json.JsonSerializerSettings? serializerSettings = null) { } | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, T jsonContent, System.Text.Encoding? encoding = null, Newtonsoft.Json.JsonSerializerSettings? serializerSettings = null) { } | ||
} | ||
} | ||
namespace MockHttp.Json.SystemTextJson | ||
{ | ||
public static class MockConfigurationExtensions | ||
{ | ||
public static MockHttp.IMockConfiguration UseSystemTextJson(this MockHttp.IMockConfiguration mockConfig, System.Text.Json.JsonSerializerOptions? options = null) { } | ||
} | ||
public static class RequestMatchingExtensions | ||
{ | ||
public static MockHttp.RequestMatching JsonBody<T>(this MockHttp.RequestMatching builder, T body, System.Text.Json.JsonSerializerOptions? serializerOptions) { } | ||
} | ||
public static class ResponseBuilderExtensions | ||
{ | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, System.Func<T> jsonContentFactory, System.Text.Encoding? encoding = null, System.Text.Json.JsonSerializerOptions? serializerOptions = null) { } | ||
public static MockHttp.Language.Flow.Response.IWithContentResult JsonBody<T>(this MockHttp.Language.Response.IWithContent builder, T jsonContent, System.Text.Encoding? encoding = null, System.Text.Json.JsonSerializerOptions? serializerOptions = null) { } | ||
} | ||
public sealed class SystemTextJsonAdapter : MockHttp.Json.IJsonAdapter | ||
{ | ||
public SystemTextJsonAdapter(System.Text.Json.JsonSerializerOptions? options = null) { } | ||
public string Serialize(object? value) { } | ||
} | ||
} |
Oops, something went wrong.