コード例 #1
0
        public async Task DeleteTest(SampleEntity entity)
        {
            await SaveItem(entity);

            var result = await repository.DeleteAsync(entity.Id.ToString(), GetPartitionKey(entity));

            Assert.True(result.IsSuccessful);

            var dbItem = await GetItem(entity);

            Assert.Null(dbItem);
        }
コード例 #2
0
 public async Task <bool> DeleteAsync(Guid id, string partition)
 {
     return((await repository.DeleteAsync(id.ToString(), partition)).IsSuccessful);
 }