Skip to content

Commit 6f3dbd9

Browse files
committed
Fix one more place where a collection expression can be used
1 parent 4802639 commit 6f3dbd9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/JsonApiDotNetCoreTests/IntegrationTests/QueryStrings/Filtering/FilterOperatorTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -817,9 +817,9 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
817817
public async Task Can_filter_on_has_with_nested_condition()
818818
{
819819
// Arrange
820-
var resources = new List<FilterableResource>
821-
{
822-
new()
820+
List<FilterableResource> resources =
821+
[
822+
new FilterableResource
823823
{
824824
Children = new List<FilterableResource>
825825
{
@@ -829,7 +829,7 @@ public async Task Can_filter_on_has_with_nested_condition()
829829
}
830830
}
831831
},
832-
new()
832+
new FilterableResource
833833
{
834834
Children = new List<FilterableResource>
835835
{
@@ -839,7 +839,7 @@ public async Task Can_filter_on_has_with_nested_condition()
839839
}
840840
}
841841
}
842-
};
842+
];
843843

844844
await _testContext.RunOnDatabaseAsync(async dbContext =>
845845
{

0 commit comments

Comments
 (0)