Inlines fixtures instantiation.

This commit is contained in:
BinaryAlley committed 2026-08-15 03:19:51 -07:00
1 parent b648e2f054
commit 59e16d645a
147 files changed
+190 -898

No files matched your search

@@ -13,15 +13,7 @@ namespace Lumina.Infrastructure.UnitTests.Core.Authentication;
[ExcludeFromCodeCoverage]
public class QRCodeGeneratorTests
{
private readonly QRCodeGenerator _sut;
/// <summary>
/// Initializes a new instance of the <see cref="QRCodeGeneratorTests"/> class.
/// </summary>
public QRCodeGeneratorTests()
{
_sut = new QRCodeGenerator();
}
private readonly QRCodeGenerator _sut = new();
[Fact]
public void GenerateQrCodeDataUri_WhenCalled_ShouldReturnValidDataUri()
@@ -11,15 +11,7 @@ namespace Lumina.Infrastructure.UnitTests.Core.Authentication;
[ExcludeFromCodeCoverage]
public class TokenGeneratorTests
{
private readonly TokenGenerator _sut;
/// <summary>
/// Initializes a new instance of the <see cref="TokenGeneratorTests"/> class.
/// </summary>
public TokenGeneratorTests()
{
_sut = new TokenGenerator();
}
private readonly TokenGenerator _sut = new();
[Fact]
public void GenerateToken_WhenCalled_ShouldGenerateNonEmptyToken()
@@ -12,15 +12,7 @@ namespace Lumina.Infrastructure.UnitTests.Core.Authentication;
[ExcludeFromCodeCoverage]
public class TotpTokenGeneratorTests
{
private readonly TotpTokenGenerator _sut;
/// <summary>
/// Initializes a new instance of the <see cref="TotpTokenGeneratorTests"/> class.
/// </summary>
public TotpTokenGeneratorTests()
{
_sut = new TotpTokenGenerator();
}
private readonly TotpTokenGenerator _sut = new();
[Fact]
public void GenerateSecret_WhenCalled_ShouldGenerateNonEmptySecret()
@@ -12,15 +12,7 @@ namespace Lumina.Infrastructure.UnitTests.Core.Security;
[ExcludeFromCodeCoverage]
public class HashServiceTests
{
private readonly PasswordHashService _sut;
/// <summary>
/// Initializes a new instance of the <see cref="HashServiceTests"/> class.
/// </summary>
public HashServiceTests()
{
_sut = new PasswordHashService();
}
private readonly PasswordHashService _sut = new();
[Fact]
public void HashString_WhenCalled_ShouldReturnNonEmptyHash()