public async Task Should_Throw_Exception_With_Wrong_Id()
        {
            var id = Guid.NewGuid();

            var e = await Assert.ThrowsAsync <EntityNotFoundException>(async() =>
                                                                       await _apiResourceAppService.GetAsync(id));

            e.EntityType.ShouldBe(typeof(ApiResource));

            e = await Assert.ThrowsAsync <EntityNotFoundException>(async() =>
                                                                   await _apiResourceAppService.DeleteAsync(id));

            e.EntityType.ShouldBe(typeof(ApiResource));
        }
 public virtual Task DeleteAsync(Guid id)
 {
     return(_appService.DeleteAsync(id));
 }