mirror of
https://github.com/JKorf/CryptoExchange.Net
synced 2026-04-07 02:01:12 +00:00
27 lines
823 B
C#
27 lines
823 B
C#
using CryptoExchange.Net.Converters.MessageParsing.DynamicConverters;
|
|
using CryptoExchange.Net.Converters.SystemTextJson;
|
|
using CryptoExchange.Net.Converters.SystemTextJson.MessageHandlers;
|
|
using System.Text.Json;
|
|
|
|
namespace CryptoExchange.Net.UnitTests.Implementations
|
|
{
|
|
internal class TestSocketMessageHandler : JsonSocketMessageHandler
|
|
{
|
|
public override JsonSerializerOptions Options { get; } = SerializerOptions.WithConverters(new TestSerializerContext());
|
|
|
|
public TestSocketMessageHandler()
|
|
{
|
|
}
|
|
|
|
protected override MessageTypeDefinition[] TypeEvaluators { get; } = [
|
|
|
|
new MessageTypeDefinition {
|
|
ForceIfFound = true,
|
|
Fields = [
|
|
],
|
|
StaticIdentifier = "test"
|
|
},
|
|
];
|
|
}
|
|
}
|