- Fix MSTest compatibility with .NET 9.0 by upgrading to MSTest.TestFramework 4.2.3 - Move Tests directory to solution level (Tests/) to prevent test files from being compiled with GermanApp - Update test project references to point to GermanApp/GermanApp.csproj - Add InternalsVisibleTo attributes for test assemblies - Make RefreshToken properties internal for testability - Fix User.ChangeEmail null handling - Add 46 comprehensive unit tests for User and RefreshToken domain entities - All tests passing successfully Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
14 lines
492 B
C#
14 lines
492 B
C#
namespace GermanApp.Application.DTOs.Auth;
|
|
|
|
/// <summary>
|
|
/// DTO for authentication response containing JWT token and refresh token.
|
|
/// </summary>
|
|
public record AuthResponse
|
|
{
|
|
public int UserId { get; init; }
|
|
public string Username { get; init; } = string.Empty;
|
|
public string Email { get; init; } = string.Empty;
|
|
public string Token { get; init; } = string.Empty;
|
|
public string RefreshToken { get; init; } = string.Empty;
|
|
public DateTime ExpiresAt { get; init; }
|
|
}
|