Exemplo n.º 1
0
        public async Task DeleteByPartitionAndRow()
        {
            var h = new Helper()
            {
                PartitionKey = Guid.NewGuid().ToString(),
                RowKey       = Guid.NewGuid().ToString(),
                Id           = Guid.NewGuid(),
            };

            await storage.InsertOrReplace(h);

            await storage.DeleteByPartitionAndRow(h.PartitionKey, h.RowKey);

            var returned = await storage.QueryByPartitionAndRow <Helper>(h.PartitionKey, h.RowKey);

            Assert.IsNull(returned);
        }