This repository was archived by the owner on Jun 19, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
src/FlowCtl.Infrastructure/Serialization
tests/FlowCtl.Infrastructure.UnitTests/Serialization Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ namespace FlowCtl.Infrastructure.Serialization;
77
88public class JsonSerializer : IJsonSerializer
99{
10- public string ContentMineType => "application/json" ;
10+ /// <summary>
11+ /// Static JSON content type reference that callers can reuse without instantiating the serializer.
12+ /// </summary>
13+ public static string ContentMineType => "application/json" ;
1114
1215 public string Serialize ( object ? input )
1316 {
Original file line number Diff line number Diff line change @@ -6,6 +6,16 @@ namespace FlowCtl.Infrastructure.UnitTests.Serialization;
66
77public class JsonSerializerTests
88{
9+ [ Fact ]
10+ public void ContentMineType_ShouldExposeJsonMimeTypeWithoutInstance ( )
11+ {
12+ // Act
13+ var mimeType = JsonSerializer . ContentMineType ;
14+
15+ // Assert
16+ Assert . Equal ( "application/json" , mimeType ) ;
17+ }
18+
919 [ Fact ]
1020 public void Serialize_ShouldThrowFlowSynxException_WhenInputIsNull ( )
1121 {
You can’t perform that action at this time.
0 commit comments