diff --git a/Tests/Orso.Arpa.Domain.Tests/AuthTests/CommandHandlerTests/LoginHandlerTests.cs b/Tests/Orso.Arpa.Domain.Tests/AuthTests/CommandHandlerTests/LoginHandlerTests.cs index b4264d9a8..ef25264c0 100644 --- a/Tests/Orso.Arpa.Domain.Tests/AuthTests/CommandHandlerTests/LoginHandlerTests.cs +++ b/Tests/Orso.Arpa.Domain.Tests/AuthTests/CommandHandlerTests/LoginHandlerTests.cs @@ -70,6 +70,7 @@ public async Task Should_Throw_Authentication_Exception_If_Password_Is_not_Valid { // Act Func func = async () => await _handler.Handle(command, new CancellationToken()); + _cookieSignIn.IsCookieSignInPossible(Arg.Any(), Arg.Any()).Returns(false); // Assert _ = func.Should().ThrowAsync().WithMessage("The system could not log you in. Please enter a valid user name and password"); @@ -79,6 +80,7 @@ public async Task Should_Throw_Authentication_Exception_If_Password_Is_not_Valid // Act Func func1 = async () => await _handler.Handle(command, new CancellationToken()); + _cookieSignIn.IsCookieSignInPossible(Arg.Any(), Arg.Any()).Returns(true); // Assert _ = func1.Should().ThrowAsync().WithMessage("Your account is locked out. Kindly wait for 10 minutes and try again");