Tests voor client api and service
This commit is contained in:
parent
cd2ec646fd
commit
3d73a9914c
12 changed files with 267 additions and 30 deletions
|
|
@ -108,7 +108,7 @@ public class ClientServiceTests : IClassFixture<DbFixture>
|
|||
await using var actContext = _dbFixture.CreateDbContext();
|
||||
// Act
|
||||
ClientService sut = new(actContext, _encryptionService, _clock);
|
||||
Client? result = await sut.GetByClientId(clientId, TestContext.Current.CancellationToken);
|
||||
Client? result = await sut.GetByClientId(_realmId, clientId, TestContext.Current.CancellationToken);
|
||||
|
||||
// Verify
|
||||
if (shouldFind)
|
||||
|
|
@ -143,7 +143,7 @@ public class ClientServiceTests : IClassFixture<DbFixture>
|
|||
await using var actContext = _dbFixture.CreateDbContext();
|
||||
// Act
|
||||
ClientService sut = new(actContext, _encryptionService, _clock);
|
||||
Client? result = await sut.FindById(searchId, TestContext.Current.CancellationToken);
|
||||
Client? result = await sut.FindById(_realmId, searchId, TestContext.Current.CancellationToken);
|
||||
|
||||
// Verify
|
||||
if (shouldFind)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue