From 04171870f0dff17bb86f1fb4da4308ff25ce550a Mon Sep 17 00:00:00 2001 From: handesirikci0rso Date: Thu, 28 Mar 2024 16:04:02 +0100 Subject: [PATCH] unit test fix --- .../AuthTests/CommandHandlerTests/LoginHandlerTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Orso.Arpa.Domain.Tests/AuthTests/CommandHandlerTests/LoginHandlerTests.cs b/Tests/Orso.Arpa.Domain.Tests/AuthTests/CommandHandlerTests/LoginHandlerTests.cs index ef25264c0..11a68458e 100644 --- a/Tests/Orso.Arpa.Domain.Tests/AuthTests/CommandHandlerTests/LoginHandlerTests.cs +++ b/Tests/Orso.Arpa.Domain.Tests/AuthTests/CommandHandlerTests/LoginHandlerTests.cs @@ -80,7 +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); + _cookieSignIn.IsCookieSignInPossible(Arg.Any(), Arg.Any()).Returns(false); // Assert _ = func1.Should().ThrowAsync().WithMessage("Your account is locked out. Kindly wait for 10 minutes and try again");