Skip to content

Commit 9f3f665

Browse files
committed
Fix irregularities in test file
1 parent c6d2641 commit 9f3f665

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: test/OpenApiTests/NamingConventions/CamelCase/CamelCaseTests.cs

+5-4
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,15 @@ public async Task Casing_convention_is_applied_to_GetCollection_endpoint()
6262
propertiesElement.Should().ContainProperty("next");
6363
});
6464

65-
string? linksInResourceObject = null;
65+
string? linksInResourceObjectSchemaRefId = null;
66+
string? primaryResourceTypeSchemaRefId = null;
6667
string? resourceAttributesInResponseSchemaRefId = null;
6768
string? resourceRelationshipInResponseSchemaRefId = null;
68-
string? primaryResourceTypeSchemaRefId = null;
6969

7070
schemasElement.ShouldContainPath($"{resourceDataSchemaRefId}.properties").With(propertiesElement =>
7171
{
72-
linksInResourceObject = propertiesElement.ShouldContainPath("links.$ref").ShouldBeSchemaReferenceId("linksInResourceObject").SchemaReferenceId;
72+
linksInResourceObjectSchemaRefId = propertiesElement.ShouldContainPath("links.$ref").ShouldBeSchemaReferenceId("linksInResourceObject")
73+
.SchemaReferenceId;
7374

7475
primaryResourceTypeSchemaRefId = propertiesElement.ShouldContainPath("type.$ref").ShouldBeSchemaReferenceId("supermarketResourceType")
7576
.SchemaReferenceId;
@@ -81,7 +82,7 @@ public async Task Casing_convention_is_applied_to_GetCollection_endpoint()
8182
.ShouldBeSchemaReferenceId("supermarketRelationshipsInResponse").SchemaReferenceId;
8283
});
8384

84-
schemasElement.ShouldContainPath($"{linksInResourceObject}.properties").With(propertiesElement =>
85+
schemasElement.ShouldContainPath($"{linksInResourceObjectSchemaRefId}.properties").With(propertiesElement =>
8586
{
8687
propertiesElement.Should().ContainProperty("self");
8788
});

0 commit comments

Comments
 (0)