aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests
diff options
context:
space:
mode:
Diffstat (limited to 'BackEnd/Timeline.Tests')
-rw-r--r--BackEnd/Timeline.Tests/IntegratedTests/TokenTest.cs2
-rw-r--r--BackEnd/Timeline.Tests/Services/UserDeleteServiceTest.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/TokenTest.cs b/BackEnd/Timeline.Tests/IntegratedTests/TokenTest.cs
index 4d4835ca..08857dc1 100644
--- a/BackEnd/Timeline.Tests/IntegratedTests/TokenTest.cs
+++ b/BackEnd/Timeline.Tests/IntegratedTests/TokenTest.cs
@@ -110,7 +110,7 @@ namespace Timeline.Tests.IntegratedTests
using (var scope = TestApp.Host.Services.CreateScope()) // UserDeleteService is scoped.
{
var userService = scope.ServiceProvider.GetRequiredService<IUserDeleteService>();
- await userService.DeleteUser("user1");
+ await userService.DeleteUserAsync("user1");
}
await client.TestPostAssertErrorAsync(VerifyTokenUrl,
diff --git a/BackEnd/Timeline.Tests/Services/UserDeleteServiceTest.cs b/BackEnd/Timeline.Tests/Services/UserDeleteServiceTest.cs
index 376c1092..17aea27b 100644
--- a/BackEnd/Timeline.Tests/Services/UserDeleteServiceTest.cs
+++ b/BackEnd/Timeline.Tests/Services/UserDeleteServiceTest.cs
@@ -21,7 +21,7 @@ namespace Timeline.Tests.Services
[Fact]
public async Task DeleteRootUser_Should_Throw()
{
- await _service.Awaiting(s => s.DeleteUser("admin")).Should().ThrowAsync<InvalidOperationOnRootUserException>();
+ await _service.Awaiting(s => s.DeleteUserAsync("admin")).Should().ThrowAsync<InvalidOperationOnRootUserException>();
}
}
}