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); }
public async Task <bool> DeleteAsync(Guid id, string partition) { return((await repository.DeleteAsync(id.ToString(), partition)).IsSuccessful); }