diff --git a/test/E2ETest/Microsoft.Test.E2E.AspNet.OData/Build.AspNet/BulkOperation/BulkOperationTest.cs b/test/E2ETest/Microsoft.Test.E2E.AspNet.OData/Build.AspNet/BulkOperation/BulkOperationTest.cs index 686122b257..24d8853fa4 100644 --- a/test/E2ETest/Microsoft.Test.E2E.AspNet.OData/Build.AspNet/BulkOperation/BulkOperationTest.cs +++ b/test/E2ETest/Microsoft.Test.E2E.AspNet.OData/Build.AspNet/BulkOperation/BulkOperationTest.cs @@ -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 = "NewFriends@odata.navigationLink"; string untypedFriendsNavigationLink = "UnTypedFriends@odata.navigationLink"; - 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);