|
|
|
@ -117,13 +117,6 @@ namespace Volo.CmsKit.Contents |
|
|
|
await Should.ThrowAsync<EntityNotFoundException>(async () => await _service.GetAsync(_data.Content_2_Id)); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public async Task ShouldThrowEntityNotFoundExceptionWhileDeletingNonExistingAsync() |
|
|
|
{ |
|
|
|
await Should.ThrowAsync<EntityNotFoundException>(async () => |
|
|
|
await _service.DeleteAsync(Guid.NewGuid())); // Freshly generated non-existing id.
|
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public async Task ShouldThrowEntityNotFoundExceptionWhileDeletingAlreadyDeletedAsync() |
|
|
|
{ |
|
|
|
|