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

@@ -39,7 +39,7 @@ public class SetupApplicationCommandHandlerTests
private readonly IDataSeedService _mockDataSeedService;
private readonly SetupApplicationCommandHandler _sut;
private readonly UserEntityFixture _userEntityFixture = new();
private readonly SetupApplicationCommandFixture _setupApplicationCommandFixture;
private readonly SetupApplicationCommandFixture _setupApplicationCommandFixture = new();
/// <summary>
/// Initializes a new instance of the <see cref="SetupApplicationCommandHandlerTests"/> class.
@@ -54,7 +54,6 @@ public class SetupApplicationCommandHandlerTests
_mockUserRepository = Substitute.For<IUserRepository>();
_mockDateTimeProvider = Substitute.For<IDateTimeProvider>();
_mockDataSeedService = Substitute.For<IDataSeedService>();
_setupApplicationCommandFixture = new SetupApplicationCommandFixture();
IValidator<SetupApplicationCommand> mockValidator = Substitute.For<IValidator<SetupApplicationCommand>>();
mockValidator.Validate(Arg.Any<SetupApplicationCommand>())
.Returns([]);
@@ -16,17 +16,8 @@ namespace Lumina.Application.UnitTests.Core.Maintenance.ApplicationSetup.Command
[ExcludeFromCodeCoverage]
public class SetupApplicationCommandValidatorTests
{
private readonly SetupApplicationCommandValidator _validator;
private readonly SetupApplicationCommandFixture _commandFixture;
/// <summary>
/// Initializes a new instance of the <see cref="SetupApplicationCommandValidatorTests"/> class.
/// </summary>
public SetupApplicationCommandValidatorTests()
{
_validator = new SetupApplicationCommandValidator();
_commandFixture = new SetupApplicationCommandFixture();
}
private readonly SetupApplicationCommandValidator _validator = new();
private readonly SetupApplicationCommandFixture _commandFixture = new();
[Fact]
public void Validate_WhenUsernameIsNull_ShouldHaveValidationError()