mirror of
https://github.com/bitwarden/server.git
synced 2026-02-12 11:53:23 +08:00
Refactor BuildVerifyUserEmailAction to accept User entity instead of user ID
- Updated IUserRepository and its implementations to change the parameter of BuildVerifyUserEmailAction from Guid userId to User user. - Modified related repository methods in Dapper and Entity Framework to utilize the User entity for email verification. - Adjusted tests to reflect the new method signature, ensuring proper functionality and integration with the updated user verification process.
This commit is contained in:
@@ -615,7 +615,7 @@ public class InitPendingOrganizationCommandTests
|
||||
.Returns(callInfo => new OrganizationInitializationUpdateAction((conn, trans, ctx) => Task.CompletedTask));
|
||||
|
||||
sutProvider.GetDependency<IUserRepository>()
|
||||
.BuildVerifyUserEmailAction(user.Id)
|
||||
.BuildVerifyUserEmailAction(Arg.Any<User>())
|
||||
.Returns(new OrganizationInitializationUpdateAction((conn, trans, ctx) => Task.CompletedTask));
|
||||
|
||||
sutProvider.GetDependency<ICollectionRepository>()
|
||||
|
||||
Reference in New Issue
Block a user