diff options
author | crupest <crupest@outlook.com> | 2021-04-27 19:29:20 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-27 19:29:20 +0800 |
commit | a665f5d894539cae5f4188e4a72ea9634b8c4ed0 (patch) | |
tree | 03aa9d578e13213018c178ba47755167e2ccc2d4 /BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs | |
parent | 89e3c2103fa478ebc659a1b914e75d5138c06c08 (diff) | |
download | timeline-a665f5d894539cae5f4188e4a72ea9634b8c4ed0.tar.gz timeline-a665f5d894539cae5f4188e4a72ea9634b8c4ed0.tar.bz2 timeline-a665f5d894539cae5f4188e4a72ea9634b8c4ed0.zip |
refactor: ...
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs')
-rw-r--r-- | BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs b/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs index 427881a0..588f2f93 100644 --- a/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs +++ b/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs @@ -65,7 +65,7 @@ namespace Timeline.Tests.IntegratedTests var userService = scope.ServiceProvider.GetRequiredService<IUserService>();
- await userService.ModifyUser(await userService.GetUserIdByUsername("administrator"), new ModifyUserParams
+ await userService.ModifyUserAsync(await userService.GetUserIdByUsernameAsync("administrator"), new ModifyUserParams
{
Username = "admin",
Password = "adminpw",
@@ -75,8 +75,8 @@ namespace Timeline.Tests.IntegratedTests foreach (var user in users)
{
var (username, password, nickname) = user;
- var u = await userService.CreateUser(username, password);
- await userService.ModifyUser(u.Id, new ModifyUserParams() { Nickname = nickname });
+ var u = await userService.CreateUserAsync(new CreateUserParams(username, password));
+ await userService.ModifyUserAsync(u.Id, new ModifyUserParams() { Nickname = nickname });
}
}
|