-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
069902c
commit 53ad3c2
Showing
1 changed file
with
0 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,15 +60,12 @@ public async Task PostEmployee_WithCreateFriends() | |
StringContent stringContent = new StringContent(content: content, encoding: Encoding.UTF8, mediaType: "application/json"); | ||
requestForPatch.Content = stringContent; | ||
|
||
var expected = "Friends\":[{\"Id\":1001,\"Name\":\"Friend 1001\",\"Age\":31},{\"Id\":1002,\"Name\":\"Friend 1002\",\"Age\":32},{\"Id\":1003,\"Name\":\"Friend 1003\",\"Age\":33}]"; | ||
|
||
//Act & Assert | ||
using (HttpResponseMessage response = await this.Client.SendAsync(requestForPatch)) | ||
{ | ||
Assert.Equal(HttpStatusCode.OK, response.StatusCode); | ||
var json = response.Content.ReadAsStringAsync().Result; | ||
Assert.Contains("SqlUD", json); | ||
Assert.Contains(expected, json); | ||
} | ||
} | ||
|
||
|
@@ -93,15 +90,12 @@ public async Task PostEmployee_WithCreateFriendsFullMetadata() | |
string newFriendsNavigationLink = "[email protected]"; | ||
string untypedFriendsNavigationLink = "[email protected]"; | ||
|
||
string expected = "Friends\":[{\"@odata.type\":\"#Microsoft.Test.E2E.AspNet.OData.BulkOperation.Friend\""; | ||
|
||
//Act & Assert | ||
using (HttpResponseMessage response = await this.Client.SendAsync(requestForPatch)) | ||
{ | ||
Assert.Equal(HttpStatusCode.OK, response.StatusCode); | ||
var json = response.Content.ReadAsStringAsync().Result; | ||
Assert.Contains("SqlUD", json); | ||
Assert.Contains(expected, json); | ||
Assert.Contains(friendsNavigationLink, json); | ||
Assert.Contains(newFriendsNavigationLink, json); | ||
Assert.Contains(untypedFriendsNavigationLink, json); | ||
|