Esempio n. 1
0
        public async Task ExecuteDeleteAll_HandlesEmptySet()
        {
            // Arrange
            CloudTable table = InitializeTable();

            await CreateTableRows(table);

            // Act
            long actual = await _manager.ExecuteDeleteAllAsync(table, TestPartition, filter : "RowKey eq 'Unknown'");

            // Assert
            Assert.Equal(0, actual);
        }
Esempio n. 2
0
        /// <inheritdoc />
        public async Task DeleteAllWebHooksAsync(string user)
        {
            if (user == null)
            {
                throw new ArgumentNullException("user");
            }

            user = NormalizeKey(user);

            CloudTable table = _manager.GetCloudTable(_connectionString, WebHookTable);
            await _manager.ExecuteDeleteAllAsync(table, user, filter : null);
        }