mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 08:11:10 +00:00
Inlines fixtures instantiation.
This commit is contained in:
1 parent
b648e2f054
commit
59e16d645a
147 files changed
+190
-898
No files matched your search
+1
-2
@@ -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([]);
|
||||
|
||||
+2
-11
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user