File tree 6 files changed +5
-13
lines changed
test/JsonApiDotNetCoreTests
ResourceDefinitions/Reading
6 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,9 @@ public FilterDataTypeTests(IntegrationTestContext<TestableStartup<FilterDbContex
26
26
var options = ( JsonApiOptions ) testContext . Factory . Services . GetRequiredService < IJsonApiOptions > ( ) ;
27
27
options . EnableLegacyFilterNotation = false ;
28
28
29
- if ( ! options . SerializerOptions . Converters . Any ( converter => converter is JsonStringEnumMemberConverter ) )
29
+ if ( ! options . SerializerOptions . Converters . Any ( converter => converter is JsonStringEnumConverter ) )
30
30
{
31
- options . SerializerOptions . Converters . Add ( new JsonStringEnumMemberConverter ( ) ) ;
32
- options . SerializerOptions . Converters . Add ( new JsonTimeSpanConverter ( ) ) ;
31
+ options . SerializerOptions . Converters . Add ( new JsonStringEnumConverter ( ) ) ;
33
32
}
34
33
}
35
34
Original file line number Diff line number Diff line change 4
4
namespace JsonApiDotNetCoreTests . IntegrationTests . QueryStrings ;
5
5
6
6
[ UsedImplicitly ( ImplicitUseTargetFlags . Members ) ]
7
- [ JsonConverter ( typeof ( JsonStringEnumMemberConverter ) ) ]
7
+ [ JsonConverter ( typeof ( JsonStringEnumConverter ) ) ]
8
8
public enum LabelColor
9
9
{
10
10
Red ,
Original file line number Diff line number Diff line change 4
4
namespace JsonApiDotNetCoreTests . IntegrationTests . ReadWrite ;
5
5
6
6
[ UsedImplicitly ( ImplicitUseTargetFlags . Members ) ]
7
- [ JsonConverter ( typeof ( JsonStringEnumMemberConverter ) ) ]
7
+ [ JsonConverter ( typeof ( JsonStringEnumConverter ) ) ]
8
8
public enum WorkItemPriority
9
9
{
10
10
Low ,
Original file line number Diff line number Diff line change 4
4
namespace JsonApiDotNetCoreTests . IntegrationTests . ResourceDefinitions . Reading ;
5
5
6
6
[ UsedImplicitly ( ImplicitUseTargetFlags . Members ) ]
7
- [ JsonConverter ( typeof ( JsonStringEnumMemberConverter ) ) ]
7
+ [ JsonConverter ( typeof ( JsonStringEnumConverter ) ) ]
8
8
public enum StarKind
9
9
{
10
10
Other ,
Original file line number Diff line number Diff line change 1
1
using System . Globalization ;
2
2
using System . Net ;
3
- using System . Text . Json . Serialization ;
4
3
using FluentAssertions ;
5
4
using JsonApiDotNetCore . Configuration ;
6
5
using JsonApiDotNetCore . Resources ;
@@ -34,11 +33,6 @@ public SerializationTests(IntegrationTestContext<TestableStartup<SerializationDb
34
33
options . AllowClientGeneratedIds = true ;
35
34
options . IncludeJsonApiVersion = false ;
36
35
options . IncludeTotalResourceCount = true ;
37
-
38
- if ( ! options . SerializerOptions . Converters . Any ( converter => converter is JsonTimeSpanConverter ) )
39
- {
40
- options . SerializerOptions . Converters . Add ( new JsonTimeSpanConverter ( ) ) ;
41
- }
42
36
}
43
37
44
38
[ Fact ]
Original file line number Diff line number Diff line change 17
17
18
18
<ItemGroup >
19
19
<PackageReference Include =" coverlet.collector" Version =" $(CoverletVersion)" PrivateAssets =" All" />
20
- <PackageReference Include =" Macross.Json.Extensions" Version =" 2.0.0" />
21
20
<PackageReference Include =" Microsoft.AspNetCore.Mvc.Testing" Version =" $(AspNetVersion)" />
22
21
<PackageReference Include =" Microsoft.EntityFrameworkCore.InMemory" Version =" $(EFCoreVersion)" />
23
22
<PackageReference Include =" Microsoft.EntityFrameworkCore.Proxies" Version =" $(EFCoreVersion)" />
You can’t perform that action at this time.
0 commit comments