diff --git a/src/Tests/Grand.Web.Admin.Tests/Controllers/LoginControllerTwoFactorTests.cs b/src/Tests/Grand.Web.Admin.Tests/Controllers/LoginControllerTwoFactorTests.cs index d86e11308..298731a41 100644 --- a/src/Tests/Grand.Web.Admin.Tests/Controllers/LoginControllerTwoFactorTests.cs +++ b/src/Tests/Grand.Web.Admin.Tests/Controllers/LoginControllerTwoFactorTests.cs @@ -10,6 +10,8 @@ using Grand.Mediator; using Grand.Web.Admin.Controllers; using Grand.Web.AdminShared.Models.Common; +using Grand.Web.Common.Localization; +using Grand.Web.Common.Security.Authentication; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Routing; @@ -55,11 +57,11 @@ public void Setup() TwoFactorAuthenticationEnabled = true, TwoFactorAuthenticationType = TwoFactorAuthenticationType.AppVerification }; - var translations = new Mock(); + var translations = new Mock(); translations.Setup(x => x.GetResource(It.IsAny())).Returns(key => key); _controller = new LoginController(settings, new CaptchaSettings(), translations.Object, - _manager.Object, customers.Object, _authentication.Object, new Mock().Object, - new Mock().Object, new Mock().Object); + _manager.Object, customers.Object, _authentication.Object, new Mock().Object, + new Mock { DefaultValue = DefaultValue.Mock }.Object, new Mock().Object); _session = new TestSession(); _controller.ControllerContext = new ControllerContext { HttpContext = new DefaultHttpContext { Session = _session },