Skip to content

Commit

Permalink
CR comment: renamed navigationLink to nestedResourceInfo for original…
Browse files Browse the repository at this point in the history
… tests in PropertyAndValueJsonLightReaderIntegrationTests.cs
  • Loading branch information
biaol-odata committed Nov 14, 2018
1 parent 455f5bd commit db86b90
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void ReadingPayloadInt64SingleDoubleDecimalWithoutSuffix()

IEdmModel mainModel = TestUtils.WrapReferencedModelsToMainModel("EntityNs", "MyContainer", model);
List<ODataResource> entries = new List<ODataResource>();
ODataNestedResourceInfo navigationLink;
ODataNestedResourceInfo nestedResourceInfo;
this.ReadEntryPayload(mainModel, payload, entitySet, entityType,
reader =>
{
Expand All @@ -81,7 +81,7 @@ public void ReadingPayloadInt64SingleDoubleDecimalWithoutSuffix()
entries.Add(reader.Item as ODataResource);
break;
case ODataReaderState.NestedResourceInfoStart:
navigationLink = (ODataNestedResourceInfo)reader.Item;
nestedResourceInfo = (ODataNestedResourceInfo)reader.Item;
break;
default:
break;
Expand Down Expand Up @@ -341,7 +341,7 @@ public void ReadingTypeDefinitionPayloadJsonLight()
"}";

List<ODataResource> entries = new List<ODataResource>();
ODataNestedResourceInfo navigationLink = null;
ODataNestedResourceInfo nestedResourceInfo = null;
this.ReadEntryPayload(model, payload, entitySet, entityType,
reader =>
{
Expand All @@ -351,7 +351,7 @@ public void ReadingTypeDefinitionPayloadJsonLight()
entries.Add(reader.Item as ODataResource);
break;
case ODataReaderState.NestedResourceInfoStart:
navigationLink = (ODataNestedResourceInfo)reader.Item;
nestedResourceInfo = (ODataNestedResourceInfo)reader.Item;
break;
default:
break;
Expand All @@ -364,7 +364,7 @@ public void ReadingTypeDefinitionPayloadJsonLight()
propertyList[1].Name.Should().Be("Weight");
propertyList[1].Value.Should().Be(60.5);

navigationLink.Name.Should().Be("Address");
nestedResourceInfo.Name.Should().Be("Address");
var address = entries[1];
address.Properties.FirstOrDefault(s => string.Equals(s.Name, "CountryRegion", StringComparison.OrdinalIgnoreCase)).Value.Should().Be("China");
}
Expand Down Expand Up @@ -491,7 +491,7 @@ public void ReadingTypeDefinitionPayloadWithTypeAnnotationJsonLight()
"}";

List<ODataResource> entries = new List<ODataResource>();
ODataNestedResourceInfo navigationLink = null;
ODataNestedResourceInfo nestedResourceInfo = null;
this.ReadEntryPayload(model, payload, entitySet, entityType,
reader =>
{
Expand All @@ -501,7 +501,7 @@ public void ReadingTypeDefinitionPayloadWithTypeAnnotationJsonLight()
entries.Add(reader.Item as ODataResource);
break;
case ODataReaderState.NestedResourceInfoStart:
navigationLink = (ODataNestedResourceInfo)reader.Item;
nestedResourceInfo = (ODataNestedResourceInfo)reader.Item;
break;
default:
break;
Expand All @@ -516,7 +516,7 @@ public void ReadingTypeDefinitionPayloadWithTypeAnnotationJsonLight()
propertyList[2].Name.Should().Be("Height");
propertyList[2].Value.Should().Be(180);

navigationLink.Name.Should().Be("Address");
nestedResourceInfo.Name.Should().Be("Address");
var address = entries[1];
address.Properties.FirstOrDefault(s => string.Equals(s.Name, "CountryRegion", StringComparison.OrdinalIgnoreCase)).Value.Should().Be("China");
}
Expand Down Expand Up @@ -568,7 +568,7 @@ public void ReadingTypeDefinitionPayloadWithMultipleTypeDefinitionJsonLight()
"}";

List<ODataResource> entries = new List<ODataResource>();
ODataNestedResourceInfo navigationLink = null;
ODataNestedResourceInfo nestedResourceInfo = null;
this.ReadEntryPayload(model, payload, entitySet, entityType,
reader =>
{
Expand All @@ -578,7 +578,7 @@ public void ReadingTypeDefinitionPayloadWithMultipleTypeDefinitionJsonLight()
entries.Add(reader.Item as ODataResource);
break;
case ODataReaderState.NestedResourceInfoStart:
navigationLink = (ODataNestedResourceInfo)reader.Item;
nestedResourceInfo = (ODataNestedResourceInfo)reader.Item;
break;
default:
break;
Expand All @@ -591,7 +591,7 @@ public void ReadingTypeDefinitionPayloadWithMultipleTypeDefinitionJsonLight()
propertyList[1].Name.Should().Be("Weight");
propertyList[1].Value.Should().Be(60.5);

navigationLink.Name.Should().Be("Address");
nestedResourceInfo.Name.Should().Be("Address");
var address = entries[1];
address.Properties.FirstOrDefault(s => string.Equals(s.Name, "CountryRegion", StringComparison.OrdinalIgnoreCase)).Value.Should().Be("China");
}
Expand Down Expand Up @@ -640,7 +640,7 @@ public void ReadingTypeDefinitionPayloadWithEdmTypeAnnotationJsonLight()
"}";

List<ODataResource> entries = new List<ODataResource>();
ODataNestedResourceInfo navigationLink = null;
ODataNestedResourceInfo nestedResourceInfo = null;
this.ReadEntryPayload(model, payload, entitySet, entityType,
reader =>
{
Expand All @@ -650,7 +650,7 @@ public void ReadingTypeDefinitionPayloadWithEdmTypeAnnotationJsonLight()
entries.Add(reader.Item as ODataResource);
break;
case ODataReaderState.NestedResourceInfoStart:
navigationLink = (ODataNestedResourceInfo)reader.Item;
nestedResourceInfo = (ODataNestedResourceInfo)reader.Item;
break;
default:
break;
Expand All @@ -663,7 +663,7 @@ public void ReadingTypeDefinitionPayloadWithEdmTypeAnnotationJsonLight()
propertyList[1].Name.Should().Be("Weight");
propertyList[1].Value.Should().Be(60.5);

navigationLink.Name.Should().Be("Address");
nestedResourceInfo.Name.Should().Be("Address");
var address = entries[1];
address.Properties.FirstOrDefault(s => string.Equals(s.Name, "CountryRegion", StringComparison.OrdinalIgnoreCase)).Value.Should().Be("China");
}
Expand Down

0 comments on commit db86b90

Please sign in to comment.