-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ODL versions to 8.0.0-rc.1 (#1277)
* Update ODL versions to 8.0.0-rc.1 * update changes
- Loading branch information
1 parent
85c8538
commit d7ae43a
Showing
6 changed files
with
32 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,12 +189,12 @@ public async Task ReadResourceSetWithNestedResourceSetWorksAsExpected() | |
r => | ||
{ | ||
Assert.Equal("NS.Order", r.Resource.TypeName); | ||
Assert.Equal(82, r.Resource.Properties.First(p => p.Name == "Price").Value); | ||
Assert.Equal(82, r.Resource.Properties.OfType<ODataProperty>().First(p => p.Name == "Price").Value); | ||
}, | ||
r => | ||
{ | ||
Assert.Equal("NS.VipOrder", r.Resource.TypeName); | ||
Assert.Equal("[email protected]", r.Resource.Properties.First(p => p.Name == "Email").Value); | ||
Assert.Equal("[email protected]", r.Resource.Properties.OfType<ODataProperty>().First(p => p.Name == "Email").Value); | ||
}); | ||
} | ||
|
||
|
@@ -257,7 +257,7 @@ public async Task ReadDeltaResourceSetWorksAsExpected() | |
|
||
ODataResourceWrapper resource2 = Assert.IsType<ODataResourceWrapper>(ordersDeltaResourceSet.DeltaItems.ElementAt(1)); | ||
Assert.Equal("NS.VipOrder", resource2.Resource.TypeName); | ||
Assert.Collection(resource2.Resource.Properties, | ||
Assert.Collection(resource2.Resource.Properties.OfType<ODataProperty>(), | ||
p => | ||
{ | ||
Assert.Equal("OrderId", p.Name); | ||
|
@@ -335,7 +335,7 @@ public async Task ReadDeletedLinkInDeltaResourceSetWorksAsExpected() | |
// 1) Resource | ||
ODataResourceWrapper resource1 = Assert.IsType<ODataResourceWrapper>(e); | ||
Assert.Equal("Customers(42)", resource1.Resource.Id.OriginalString); | ||
Assert.Equal("Sammy", resource1.Resource.Properties.First(p => p.Name == "Name").Value); | ||
Assert.Equal("Sammy", resource1.Resource.Properties.OfType<ODataProperty>().First(p => p.Name == "Name").Value); | ||
}, | ||
e => | ||
{ | ||
|
@@ -358,7 +358,7 @@ public async Task ReadDeletedLinkInDeltaResourceSetWorksAsExpected() | |
// 4) Resource | ||
ODataResourceWrapper resource2 = Assert.IsType<ODataResourceWrapper>(e); | ||
Assert.Equal("Orders(10643)", resource2.Resource.Id.OriginalString); | ||
Assert.Equal(82, resource2.Resource.Properties.First(p => p.Name == "Price").Value); | ||
Assert.Equal(82, resource2.Resource.Properties.OfType<ODataProperty>().First(p => p.Name == "Price").Value); | ||
}, | ||
e => | ||
{ | ||
|
@@ -418,7 +418,7 @@ public async Task ReadDeletedLinkInDeltaResourceSetWorksAsExpected2() | |
ODataDeletedResource innerDeletedResource = Assert.IsType<ODataDeletedResource>(orderResource.Resource); | ||
Assert.Equal(DeltaDeletedEntryReason.Deleted, innerDeletedResource.Reason); | ||
|
||
ODataProperty property = Assert.Single(innerDeletedResource.Properties); | ||
ODataProperty property = Assert.Single(innerDeletedResource.Properties.OfType<ODataProperty>()); | ||
Assert.Equal("OrderId", property.Name); | ||
Assert.Equal(10, property.Value); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters