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

@@ -33,7 +33,7 @@ public class AddBookCommandHandlerTests
private readonly IUnitOfWork _mockUnitOfWork;
private readonly IBookRepository _mockBookRepository;
private readonly AddBookCommandHandler _sut;
private readonly AddBookCommandFixture _commandBookFixture;
private readonly AddBookCommandFixture _commandBookFixture = new();
/// <summary>
/// Initializes a new instance of the <see cref="AddBookCommandHandlerTests"/> class.
@@ -53,7 +53,6 @@ public class AddBookCommandHandlerTests
mockValidator.Validate(Arg.Any<AddBookCommand>())
.Returns([]);
_sut = new AddBookCommandHandler(_mockUnitOfWork, mockValidator);
_commandBookFixture = new AddBookCommandFixture();
}
[Fact]
@@ -20,17 +20,8 @@ namespace Lumina.Application.UnitTests.Core.MediaLibrary.WrittenContentLibrary.B
[ExcludeFromCodeCoverage]
public class AddBookCommandValidatorTests
{
private readonly AddBookCommandFixture _commandBookFixture;
private readonly AddBookCommandValidator _validator;
/// <summary>
/// Initializes a new instance of the <see cref="AddBookCommandValidatorTests"/> class.
/// </summary>
public AddBookCommandValidatorTests()
{
_validator = new AddBookCommandValidator();
_commandBookFixture = new AddBookCommandFixture();
}
private readonly AddBookCommandFixture _commandBookFixture = new();
private readonly AddBookCommandValidator _validator = new();
[Fact]
public void Validate_WhenTitleIsNull_ShouldHaveValidationError()