Skip to content

Commit

Permalink
unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
handesirikci0rso committed Mar 28, 2024
1 parent d2c0f7f commit 0417187
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public async Task Should_Throw_Authentication_Exception_If_Password_Is_not_Valid

// Act
Func<Task> func1 = async () => await _handler.Handle(command, new CancellationToken());
_cookieSignIn.IsCookieSignInPossible(Arg.Any<User>(), Arg.Any<string>()).Returns(true);
_cookieSignIn.IsCookieSignInPossible(Arg.Any<User>(), Arg.Any<string>()).Returns(false);

// Assert
_ = func1.Should().ThrowAsync<AuthorizationException>().WithMessage("Your account is locked out. Kindly wait for 10 minutes and try again");
Expand Down

0 comments on commit 0417187

Please sign in to comment.