Skip to content

Commit b1a4f1a

Browse files
committed
feat(attrAttribute): add constructor overload
simplifies construction for unit tests
1 parent 3b78906 commit b1a4f1a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/JsonApiDotNetCore/Models/AttrAttribute.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ public AttrAttribute(string publicName)
1111
PublicAttributeName = publicName;
1212
}
1313

14+
public AttrAttribute(string publicName, string internalName)
15+
{
16+
PublicAttributeName = publicName;
17+
InternalAttributeName = internalName;
18+
}
19+
1420
public string PublicAttributeName { get; set; }
1521
public string InternalAttributeName { get; set; }
1622

0 commit comments

Comments
 (0)