diff options
author | crupest <crupest@outlook.com> | 2020-08-11 01:48:57 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-11 01:48:57 +0800 |
commit | c3369742b6e68714d0a7df46a99a0798eb2d6940 (patch) | |
tree | 874a30f989e0a9d8080aae76e76828b6950352c2 /Timeline.Tests/IntegratedTests/TokenTest.cs | |
parent | e02e1e120693d466679cae2b602085f57b60971f (diff) | |
download | timeline-c3369742b6e68714d0a7df46a99a0798eb2d6940.tar.gz timeline-c3369742b6e68714d0a7df46a99a0798eb2d6940.tar.bz2 timeline-c3369742b6e68714d0a7df46a99a0798eb2d6940.zip |
Handle post deletion on user deletion correctly.
Diffstat (limited to 'Timeline.Tests/IntegratedTests/TokenTest.cs')
-rw-r--r-- | Timeline.Tests/IntegratedTests/TokenTest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline.Tests/IntegratedTests/TokenTest.cs b/Timeline.Tests/IntegratedTests/TokenTest.cs index d1c31606..480d66cd 100644 --- a/Timeline.Tests/IntegratedTests/TokenTest.cs +++ b/Timeline.Tests/IntegratedTests/TokenTest.cs @@ -119,9 +119,9 @@ namespace Timeline.Tests.IntegratedTests using var client = await CreateDefaultClient();
var token = (await CreateUserTokenAsync(client, "user1", "user1pw")).Token;
- using (var scope = TestApp.Host.Services.CreateScope()) // UserService is scoped.
+ using (var scope = TestApp.Host.Services.CreateScope()) // UserDeleteService is scoped.
{
- var userService = scope.ServiceProvider.GetRequiredService<IUserService>();
+ var userService = scope.ServiceProvider.GetRequiredService<IUserDeleteService>();
await userService.DeleteUser("user1");
}
|