Browse Source
Add test for FindByPasskeyIdAsync with third credential
pull/24278/head
maliming
6 months ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
4 additions and
0 deletions
-
modules/identity/test/Volo.Abp.Identity.TestBase/Volo/Abp/Identity/IdentityUserRepository_Tests.cs
|
|
|
@ -305,6 +305,10 @@ public abstract class IdentityUserRepository_Tests<TStartupModule> : AbpIdentity |
|
|
|
|
|
|
|
user = await UserRepository.FindByPasskeyIdAsync(TestData.PasskeyCredentialId2); |
|
|
|
user.ShouldNotBeNull(); |
|
|
|
user.Id.ShouldBe(TestData.UserJohnId); |
|
|
|
|
|
|
|
user = await UserRepository.FindByPasskeyIdAsync(TestData.PasskeyCredentialId3); |
|
|
|
user.ShouldNotBeNull(); |
|
|
|
user.Id.ShouldBe(TestData.UserNeoId); |
|
|
|
|
|
|
|
(await UserRepository.FindByPasskeyIdAsync((byte[])[1, 2, 3])).ShouldBeNull(); |
|
|
|
|