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
-9
@@ -18,15 +18,7 @@ namespace Lumina.Application.UnitTests.Common.Mapping.MediaLibrary.WrittenConten
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class AddBookRequestMappingTests
|
||||
{
|
||||
private readonly AddBookRequestFixture _requestFixture;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AddBookRequestMappingTests"/> class.
|
||||
/// </summary>
|
||||
public AddBookRequestMappingTests()
|
||||
{
|
||||
_requestFixture = new AddBookRequestFixture();
|
||||
}
|
||||
private readonly AddBookRequestFixture _requestFixture = new();
|
||||
|
||||
[Fact]
|
||||
public void ToCommand_WhenMappingCompleteRequest_ShouldMapAllPropertiesCorrectly()
|
||||
|
||||
+1
-9
@@ -20,15 +20,7 @@ namespace Lumina.Application.UnitTests.Common.Mapping.MediaLibrary.WrittenConten
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class BookEntityMappingTests
|
||||
{
|
||||
private readonly BookEntityFixture _bookEntityFixture;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BookEntityMappingTests"/> class.
|
||||
/// </summary>
|
||||
public BookEntityMappingTests()
|
||||
{
|
||||
_bookEntityFixture = new BookEntityFixture();
|
||||
}
|
||||
private readonly BookEntityFixture _bookEntityFixture = new();
|
||||
|
||||
[Fact]
|
||||
public void ToDomainEntity_WhenMappingValidBookEntity_ShouldMapCorrectly()
|
||||
|
||||
+1
-9
@@ -16,15 +16,7 @@ namespace Lumina.Application.UnitTests.Common.Mapping.MediaLibrary.WrittenConten
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class BookMappingTests
|
||||
{
|
||||
private readonly BookFixture _bookFixture;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BookMappingTests"/> class.
|
||||
/// </summary>
|
||||
public BookMappingTests()
|
||||
{
|
||||
_bookFixture = new BookFixture();
|
||||
}
|
||||
private readonly BookFixture _bookFixture = new();
|
||||
|
||||
[Fact]
|
||||
public void ToRepositoryEntity_WhenMappingCompleteBook_ShouldMapAllPropertiesCorrectly()
|
||||
|
||||
+1
-9
@@ -18,15 +18,7 @@ namespace Lumina.Application.UnitTests.Common.Mapping.MediaLibrary.WrittenConten
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class BookRatingDtoMappingTests
|
||||
{
|
||||
private readonly BookRatingDtoFixture _bookRatingDtoFixture;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BookRatingDtoMappingTests"/> class.
|
||||
/// </summary>
|
||||
public BookRatingDtoMappingTests()
|
||||
{
|
||||
_bookRatingDtoFixture = new BookRatingDtoFixture();
|
||||
}
|
||||
private readonly BookRatingDtoFixture _bookRatingDtoFixture = new();
|
||||
|
||||
[Fact]
|
||||
public void ToDomainEntity_WhenMappingCompleteBookRatinDto_ShouldMapAllPropertiesCorrectly()
|
||||
|
||||
+1
-9
@@ -19,15 +19,7 @@ namespace Lumina.Application.UnitTests.Common.Mapping.MediaLibrary.WrittenConten
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class BookRatingEntityMappingTests
|
||||
{
|
||||
private readonly BookRatingEntityFixture _fixture;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BookRatingEntityMappingTests"/> class.
|
||||
/// </summary>
|
||||
public BookRatingEntityMappingTests()
|
||||
{
|
||||
_fixture = new BookRatingEntityFixture();
|
||||
}
|
||||
private readonly BookRatingEntityFixture _fixture = new();
|
||||
|
||||
[Fact]
|
||||
public void ToResponse_WhenMappingValidBookRatingEntity_ShouldMapCorrectly()
|
||||
|
||||
+1
-9
@@ -19,15 +19,7 @@ namespace Lumina.Application.UnitTests.Common.Mapping.MediaLibrary.WrittenConten
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class BookRatingMappingTests
|
||||
{
|
||||
private readonly BookRatingFixture _bookRatingFixture;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BookRatingMappingTests"/> class.
|
||||
/// </summary>
|
||||
public BookRatingMappingTests()
|
||||
{
|
||||
_bookRatingFixture = new BookRatingFixture();
|
||||
}
|
||||
private readonly BookRatingFixture _bookRatingFixture = new();
|
||||
|
||||
[Fact]
|
||||
public void ToRepositoryEntity_WhenMappingCompleteBookRating_ShouldMapAllPropertiesCorrectly()
|
||||
|
||||
+1
-9
@@ -19,15 +19,7 @@ namespace Lumina.Application.UnitTests.Common.Mapping.MediaLibrary.WrittenConten
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class IsbnDtoMappingTests
|
||||
{
|
||||
private readonly IsbnDtoFixture _isbnDtoFixture;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="IsbnDtoMappingTests"/> class.
|
||||
/// </summary>
|
||||
public IsbnDtoMappingTests()
|
||||
{
|
||||
_isbnDtoFixture = new IsbnDtoFixture();
|
||||
}
|
||||
private readonly IsbnDtoFixture _isbnDtoFixture = new();
|
||||
|
||||
[Fact]
|
||||
public void ToDomainEntity_WhenMappingValidIsbn10Dto_ShouldMapCorrectly()
|
||||
|
||||
+1
-9
@@ -18,15 +18,7 @@ namespace Lumina.Application.UnitTests.Common.Mapping.MediaLibrary.WrittenConten
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class IsbnMappingTests
|
||||
{
|
||||
private readonly IsbnFixture _isbnFixture;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="IsbnMappingTests"/> class.
|
||||
/// </summary>
|
||||
public IsbnMappingTests()
|
||||
{
|
||||
_isbnFixture = new IsbnFixture();
|
||||
}
|
||||
private readonly IsbnFixture _isbnFixture = new();
|
||||
|
||||
[Fact]
|
||||
public void ToRepositoryEntity_WhenMappingIsbn10_ShouldMapCorrectly()
|
||||
|
||||
Reference in new issue
Block a user