aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/IntegratedTests/TokenTest.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-11 01:48:57 +0800
committercrupest <crupest@outlook.com>2020-08-11 01:48:57 +0800
commitcaa09ff7ce89088d2de0865c5141ab5f867b7b5c (patch)
treee68a43b71118bbaa229d0a28159af1452a232cb7 /Timeline.Tests/IntegratedTests/TokenTest.cs
parentd31cc920403b1e1f90a48d2569084c2f6a4d7dbe (diff)
downloadtimeline-caa09ff7ce89088d2de0865c5141ab5f867b7b5c.tar.gz
timeline-caa09ff7ce89088d2de0865c5141ab5f867b7b5c.tar.bz2
timeline-caa09ff7ce89088d2de0865c5141ab5f867b7b5c.zip
Handle post deletion on user deletion correctly.
Diffstat (limited to 'Timeline.Tests/IntegratedTests/TokenTest.cs')
-rw-r--r--Timeline.Tests/IntegratedTests/TokenTest.cs4
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");
}