mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 11:11:10 +00:00
Implements first stage library management system
This commit is contained in:
1 parent
5e0f94cd82
commit
36352ea9e8
291 files changed
+3733
-1384
No files matched your search
+6
-6
@@ -12,7 +12,7 @@ using System.Linq;
|
||||
namespace Lumina.Application.UnitTests.Common.Mapping.Common.Metadata;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="GenreModelMapping"/> class.
|
||||
/// Contains unit tests for the <see cref="GenreEntityMapping"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class GenreModelMappingTests
|
||||
@@ -24,7 +24,7 @@ public class GenreModelMappingTests
|
||||
GenreEntity genreEntity = new("Rock");
|
||||
|
||||
// Act
|
||||
ErrorOr<Genre> result = genreEntity.ToDomainModel();
|
||||
ErrorOr<Genre> result = genreEntity.ToDomainEntity();
|
||||
|
||||
// Assert
|
||||
result.IsError.Should().BeFalse();
|
||||
@@ -43,7 +43,7 @@ public class GenreModelMappingTests
|
||||
GenreEntity genreEntity = new(name);
|
||||
|
||||
// Act
|
||||
ErrorOr<Genre> result = genreEntity.ToDomainModel();
|
||||
ErrorOr<Genre> result = genreEntity.ToDomainEntity();
|
||||
|
||||
// Assert
|
||||
result.IsError.Should().BeFalse();
|
||||
@@ -61,7 +61,7 @@ public class GenreModelMappingTests
|
||||
GenreEntity genreEntity = new(invalidName);
|
||||
|
||||
// Act
|
||||
ErrorOr<Genre> result = genreEntity.ToDomainModel();
|
||||
ErrorOr<Genre> result = genreEntity.ToDomainEntity();
|
||||
|
||||
// Assert
|
||||
result.IsError.Should().BeTrue();
|
||||
@@ -80,7 +80,7 @@ public class GenreModelMappingTests
|
||||
];
|
||||
|
||||
// Act
|
||||
IEnumerable<ErrorOr<Genre>> results = genreEntities.ToDomainModels();
|
||||
IEnumerable<ErrorOr<Genre>> results = genreEntities.ToDomainEntities();
|
||||
|
||||
// Assert
|
||||
results.Should().NotBeNull();
|
||||
@@ -107,7 +107,7 @@ public class GenreModelMappingTests
|
||||
];
|
||||
|
||||
// Act
|
||||
IEnumerable<ErrorOr<Genre>> results = genreEntities.ToDomainModels();
|
||||
IEnumerable<ErrorOr<Genre>> results = genreEntities.ToDomainEntities();
|
||||
|
||||
// Assert
|
||||
results.Should().NotBeNull();
|
||||
|
||||
+6
-6
@@ -12,7 +12,7 @@ using System.Linq;
|
||||
namespace Lumina.Application.UnitTests.Common.Mapping.Common.Metadata;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="TagModelMapping"/> class.
|
||||
/// Contains unit tests for the <see cref="TagEntityMapping"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class TagModelMappingTests
|
||||
@@ -24,7 +24,7 @@ public class TagModelMappingTests
|
||||
TagEntity tagEntity = new("indie");
|
||||
|
||||
// Act
|
||||
ErrorOr<Tag> result = tagEntity.ToDomainModel();
|
||||
ErrorOr<Tag> result = tagEntity.ToDomainEntity();
|
||||
|
||||
// Assert
|
||||
result.IsError.Should().BeFalse();
|
||||
@@ -44,7 +44,7 @@ public class TagModelMappingTests
|
||||
TagEntity tagEntity = new(name);
|
||||
|
||||
// Act
|
||||
ErrorOr<Tag> result = tagEntity.ToDomainModel();
|
||||
ErrorOr<Tag> result = tagEntity.ToDomainEntity();
|
||||
|
||||
// Assert
|
||||
result.IsError.Should().BeFalse();
|
||||
@@ -62,7 +62,7 @@ public class TagModelMappingTests
|
||||
TagEntity tagEntity = new(invalidName);
|
||||
|
||||
// Act
|
||||
ErrorOr<Tag> result = tagEntity.ToDomainModel();
|
||||
ErrorOr<Tag> result = tagEntity.ToDomainEntity();
|
||||
|
||||
// Assert
|
||||
result.IsError.Should().BeTrue();
|
||||
@@ -81,7 +81,7 @@ public class TagModelMappingTests
|
||||
];
|
||||
|
||||
// Act
|
||||
IEnumerable<ErrorOr<Tag>> results = tagEntities.ToDomainModels();
|
||||
IEnumerable<ErrorOr<Tag>> results = tagEntities.ToDomainEntities();
|
||||
|
||||
// Assert
|
||||
results.Should().NotBeNull();
|
||||
@@ -108,7 +108,7 @@ public class TagModelMappingTests
|
||||
];
|
||||
|
||||
// Act
|
||||
IEnumerable<ErrorOr<Tag>> results = tagEntities.ToDomainModels();
|
||||
IEnumerable<ErrorOr<Tag>> results = tagEntities.ToDomainEntities();
|
||||
|
||||
// Assert
|
||||
results.Should().NotBeNull();
|
||||
|
||||
Reference in new issue
Block a user