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

@@ -1,11 +1,10 @@
using System.Threading;
using System.Threading.Tasks;
using AutoFixture.NUnit3;
using Microsoft.AspNetCore.Identity;
using Moq;
using NUnit.Framework;
using Umbraco.Core.BackOffice;
using Umbraco.Tests.Common.AutoFixture;
using Umbraco.Tests.UnitTests.AutoFixture;
using Umbraco.Web.BackOffice.Controllers;
using Umbraco.Web.Common.Exceptions;
@@ -15,7 +14,7 @@ namespace Umbraco.Tests.Web.Controllers
public class UsersControllerUnitTests
{
[Test,AutoMoqData]
public async Task PostUnlockUsers_When_User_Lockout_Update_Fails_Expect_Failure_Response(
public void PostUnlockUsers_When_User_Lockout_Update_Fails_Expect_Failure_Response(
[Frozen] IUserStore<BackOfficeIdentityUser> userStore,
UsersController sut,
BackOfficeIdentityUser user,