コード例 #1
0
            public async Task InsertSameRowKey()
            {
                var key   = "test";
                var count = AzureUtil.MaxBatchCount * 2;
                var list  = GetSameRowList(count, key);
                await AzureUtil.InsertBatchUnordered(_table, list);

                var found = await AzureUtil.QueryAsync <DynamicTableEntity>(_table, TableQueryUtil.RowKey(key));

                Assert.Equal(count, found.Count);
            }
コード例 #2
0
            public async Task DeleteBatchSamePartitionKey()
            {
                var key   = "test";
                var count = AzureUtil.MaxBatchCount * 2;
                var list  = GetSamePartitionList(count, key);
                await AzureUtil.InsertBatchUnordered(_table, list);

                await AzureUtil.DeleteBatch(_table, list.Select(x => x.GetEntityKey()));

                var found = await AzureUtil.QueryAsync <DynamicTableEntity>(_table, TableQueryUtil.RowKey(key));

                Assert.Equal(0, found.Count);
            }