was added new rules to usernames

This commit is contained in:
Artemy
2026-03-07 21:19:48 +07:00
parent ecb9f4581d
commit 08270e0350
13 changed files with 363 additions and 31 deletions
@@ -89,15 +89,7 @@ public class JwtTokenHasherTests
{
// Arrange
var emptyConfig = new ConfigurationBuilder().Build();
var hasherWithDefaultSecret = new JwtTokenHasher(emptyConfig);
string token = _fixture.Create<string>();
// Act
string hash = hasherWithDefaultSecret.HashToken(token);
var result = hasherWithDefaultSecret.VerifyToken(token, hash);
// Assert
Assert.That(result, Is.True);
// Act & Assert
Assert.Throws<InvalidOperationException>(() => new JwtTokenHasher(emptyConfig));
}
}