diff --git a/framework/test/Volo.Abp.TestApp/Volo/Abp/TestApp/Testing/RepositoryExtensions_Tests.cs b/framework/test/Volo.Abp.TestApp/Volo/Abp/TestApp/Testing/RepositoryExtensions_Tests.cs index 747c53e333..53ef423378 100644 --- a/framework/test/Volo.Abp.TestApp/Volo/Abp/TestApp/Testing/RepositoryExtensions_Tests.cs +++ b/framework/test/Volo.Abp.TestApp/Volo/Abp/TestApp/Testing/RepositoryExtensions_Tests.cs @@ -24,10 +24,10 @@ public abstract class RepositoryExtensions_Tests : TestAppTestBa await WithUnitOfWorkAsync(async () => { var id = Guid.NewGuid(); - await Assert.ThrowsAsync(async () => + await Assert.ThrowsAsync>(async () => await PersonRepository.EnsureExistsAsync(Guid.NewGuid()) ); - await Assert.ThrowsAsync(async () => + await Assert.ThrowsAsync>(async () => await PersonRepository.EnsureExistsAsync(x => x.Id == id) );