mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 05: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
@@ -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]
|
||||
|
||||
+2
-11
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user