Browse Source

chore(): fix tests

pull/23734/head
Nico Lachmuth 5 months ago
parent
commit
e7108c8d15
  1. 4
      framework/test/Volo.Abp.TestApp/Volo/Abp/TestApp/Testing/RepositoryExtensions_Tests.cs

4
framework/test/Volo.Abp.TestApp/Volo/Abp/TestApp/Testing/RepositoryExtensions_Tests.cs

@ -24,10 +24,10 @@ public abstract class RepositoryExtensions_Tests<TStartupModule> : TestAppTestBa
await WithUnitOfWorkAsync(async () =>
{
var id = Guid.NewGuid();
await Assert.ThrowsAsync<EntityNotFoundException>(async () =>
await Assert.ThrowsAsync<EntityNotFoundException<Person>>(async () =>
await PersonRepository.EnsureExistsAsync(Guid.NewGuid())
);
await Assert.ThrowsAsync<EntityNotFoundException>(async () =>
await Assert.ThrowsAsync<EntityNotFoundException<Person>>(async () =>
await PersonRepository.EnsureExistsAsync(x => x.Id == id)
);

Loading…
Cancel
Save