Clean up + migrated AuditServiceTests

This commit is contained in:
Bjarke Berg
2020-07-01 17:42:39 +02:00
parent 7b546e6cee
commit aac8cd5423
9 changed files with 230 additions and 75 deletions

View File

@@ -180,7 +180,7 @@ namespace Umbraco.Tests.Integration.TestServerTest.Controllers
var user = new UserBuilder()
.AddUserGroup()
.WithAlias("writer") // Needs to be an existing alias
.WithAlias("writer") // Needs to be an existing alias
.Done()
.WithIsLockedOut(true, DateTime.UtcNow)
.Build();
@@ -208,6 +208,14 @@ namespace Umbraco.Tests.Integration.TestServerTest.Controllers
[Test]
public async Task PostUnlockUsers_When_Multiple_UserIds_Supplied_Expect_User_Locked_Out_With_Correct_Response_Message()
{
var xxx = new UserBuilder()
.WithUsername("Admin")
.AddUserGroup()
.WithAlias("writer")
.Done()
.Build();
var numberOfUsers = 3;
var userService = GetRequiredService<IUserService>();