Skip to content

Commit b25b6bb

Browse files
committed
Simplify test
1 parent b7a3890 commit b25b6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/JsonApiDotNetCoreTests/UnitTests/ResourceGraph/ResourceGraphBuilderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public void Can_override_capabilities_on_Id_property()
361361
IResourceGraph resourceGraph = builder.Build();
362362
ResourceType resourceType = resourceGraph.GetResourceType<ResourceWithIdOverride>();
363363

364-
AttrAttribute idAttribute = resourceType.Attributes.Single(attr => attr.Property.Name == nameof(Identifiable<object>.Id));
364+
AttrAttribute idAttribute = resourceType.GetAttributeByPropertyName(nameof(Identifiable<object>.Id));
365365
idAttribute.Capabilities.Should().Be(AttrCapabilities.AllowFilter);
366366
}
367367

0 commit comments

Comments
 (0)