Пример #1
0
        public async Task DeleteByRow()
        {
            var random = new Random();
            var count  = random.Next(1, 25);
            var rowKey = Guid.NewGuid().ToString();

            for (var i = 0; i < count; i++)
            {
                var h = new Helper()
                {
                    PartitionKey = Guid.NewGuid().ToString(),
                    RowKey       = rowKey,
                    Id           = Guid.NewGuid(),
                };
                await storage.InsertOrReplace(h);
            }

            await storage.DeleteByRow(rowKey);

            var returned = await storage.QueryByRow <Helper>(rowKey);

            Assert.IsNotNull(returned);
            Assert.IsFalse(returned.Any());
        }