private static async Task <ItemResponse <TestDoc> > UpsertItemAsync( ContainerInternal containerCore, TestDoc testDoc, string dekId, List <string> pathsToEncrypt, HttpStatusCode expectedStatusCode) { ItemResponse <TestDoc> upsertResponse = await containerCore.UpsertItemAsync( testDoc, new PartitionKey(testDoc.PK), EncryptionTests.GetRequestOptions(containerCore, dekId, pathsToEncrypt)); Assert.AreEqual(expectedStatusCode, upsertResponse.StatusCode); Assert.AreEqual(testDoc, upsertResponse.Resource); return(upsertResponse); }