Skip to content

Commit

Permalink
Fixed build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Willey committed Feb 14, 2020
1 parent d1406ec commit eb37121
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ namespace Microsoft.Azure.Cosmos.Tests
using System.Threading.Tasks;
using Microsoft.Azure.Cosmos.Query;
using Microsoft.Azure.Cosmos.Query.Core.ContinuationTokens;
using Microsoft.Azure.Cosmos.Resource.CosmosExceptions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using Newtonsoft.Json;
Expand All @@ -34,9 +35,15 @@ public async Task ContinuationTokenIsNotUpdatedOnFails()

ResponseMessage firstResponse = new ResponseMessage(HttpStatusCode.NotModified);
firstResponse.Headers.ETag = "FirstContinuation";
ResponseMessage secondResponse = new ResponseMessage(HttpStatusCode.NotFound);
secondResponse.Headers.ETag = "ShouldNotContainThis";
secondResponse.ErrorMessage = "something";
ResponseMessage secondResponse = new ResponseMessage(
statusCode: HttpStatusCode.NotFound,
requestMessage: null,
headers: new Headers()
{
ETag = "ShouldNotContainThis"
},
cosmosException: new NotFoundException("something"),
diagnostics: CosmosDiagnosticsContext.Create());

mockContext.SetupSequence(x => x.ProcessResourceOperationAsync<ResponseMessage>(
It.IsAny<Uri>(),
Expand Down

0 comments on commit eb37121

Please sign in to comment.