Exemplo n.º 1
0
        private static async Task <ItemResponse <TestDoc> > DeleteItemAsync(
            ContainerCore containerCore,
            TestDoc testDoc)
        {
            ItemResponse <TestDoc> deleteResponse = await containerCore.DeleteItemAsync <TestDoc>(
                testDoc.Id,
                new PartitionKey(testDoc.PK));

            Assert.AreEqual(HttpStatusCode.NoContent, deleteResponse.StatusCode);
            Assert.IsNull(deleteResponse.Resource);
            return(deleteResponse);
        }