File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/Mixed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ namespace JsonApiDotNetCoreTests.IntegrationTests.AtomicOperations.Mixed
12
12
{
13
13
public sealed class AtomicSerializationTests : IClassFixture < IntegrationTestContext < TestableStartup < OperationsDbContext > , OperationsDbContext > >
14
14
{
15
+ private const string JsonDateTimeOffsetFormatSpecifier = "yyyy-MM-ddTHH:mm:ss.FFFFFFFK" ;
16
+
15
17
private readonly IntegrationTestContext < TestableStartup < OperationsDbContext > , OperationsDbContext > _testContext ;
16
18
private readonly OperationsFakers _fakers = new ( ) ;
17
19
@@ -59,7 +61,8 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
59
61
id = newPerformer . StringId ,
60
62
attributes = new
61
63
{
62
- artistName = newPerformer . ArtistName
64
+ artistName = newPerformer . ArtistName ,
65
+ bornAt = newPerformer . BornAt
63
66
}
64
67
}
65
68
}
@@ -88,7 +91,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
88
91
""id"": """ + newPerformer . StringId + @""",
89
92
""attributes"": {
90
93
""artistName"": """ + newPerformer . ArtistName + @""",
91
- ""bornAt"": ""0001-01-01T01:00:00+01:00 ""
94
+ ""bornAt"": """ + newPerformer . BornAt . ToString ( JsonDateTimeOffsetFormatSpecifier ) + @" ""
92
95
},
93
96
""links"": {
94
97
""self"": ""http://localhost/performers/" + newPerformer . StringId + @"""
You can’t perform that action at this time.
0 commit comments