Skip to content

Commit b13c4ff

Browse files
author
Bart Koelman
committed
Corrected AddRange with single item
1 parent ab7aa7e commit b13c4ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/JsonApiDotNetCoreTests/IntegrationTests/ResourceDefinitions/Reading/ResourceDefinitionReadTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public async Task Filter_from_resource_definition_is_applied_on_secondary_endpoi
331331
await _testContext.RunOnDatabaseAsync(async dbContext =>
332332
{
333333
await dbContext.ClearTableAsync<Planet>();
334-
dbContext.Stars.AddRange(star);
334+
dbContext.Stars.Add(star);
335335
await dbContext.SaveChangesAsync();
336336
});
337337

@@ -387,7 +387,7 @@ public async Task Filter_from_resource_definition_is_applied_on_relationship_end
387387
await _testContext.RunOnDatabaseAsync(async dbContext =>
388388
{
389389
await dbContext.ClearTableAsync<Planet>();
390-
dbContext.Stars.AddRange(star);
390+
dbContext.Stars.Add(star);
391391
await dbContext.SaveChangesAsync();
392392
});
393393

0 commit comments

Comments
 (0)