tests: add mucho tests

This commit is contained in:
Stevan Freeborn
2026-02-06 06:48:34 -06:00
parent e93fed6e67
commit 5772e81110
26 changed files with 1983 additions and 18 deletions
@@ -17,7 +17,8 @@ public class TokenGeneratorTests
[Fact]
public void GenerateAccessToken_WhenCalled_ItShouldReturnValidJwtToken()
{
var user = User.From("testuser", "hashedpassword");
var encryptedDataKey = EncryptedDataKey.From("keyId", "encryptedKey");
var user = User.From("testuser", "hashedpassword", encryptedDataKey);
var madeUp256BitSecret = RandomNumberGenerator.GetBytes(32);
@@ -58,7 +59,8 @@ public class TokenGeneratorTests
[Fact]
public void GenerateRefreshToken_WhenCalled_ItShouldReturnRefreshTokenWithCorrectProperties()
{
var user = User.From("testuser", "hashedpassword");
var encryptedDataKey = EncryptedDataKey.From("keyId", "encryptedKey");
var user = User.From("testuser", "hashedpassword", encryptedDataKey);
var now = DateTimeOffset.UtcNow;