mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17:11:10 +00:00
Adds domain Music aggregate
This commit is contained in:
1 parent
bde08c7440
commit
3a720af29f
100 files changed
+13077
-558
No files matched your search
-26
@@ -258,32 +258,6 @@ public class AddBookCommandValidatorTests
|
||||
result.ShouldHaveValidationError(Errors.Metadata.ReReleaseYearMustBeBetween1And9999);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Validate_WhenReleaseCountryIsValid_ShouldNotHaveValidationError()
|
||||
{
|
||||
// Arrange
|
||||
AddBookCommand bookCommand = _commandBookFixture.Create(metadata: _writtenContentMetadataDtoFixture.Create(releaseInfo: _releaseInfoDtoFixture.Create(releaseCountry: new Faker().Random.String2(2).ToUpper())));
|
||||
|
||||
// Act
|
||||
List<Error> result = _validator.TestValidate(bookCommand);
|
||||
|
||||
// Assert
|
||||
result.ShouldNotHaveValidationError(Errors.Metadata.CountryCodeMustBe2CharactersLong);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Validate_WhenReleaseCountryIsInvalid_ShouldHaveValidationError()
|
||||
{
|
||||
// Arrange
|
||||
AddBookCommand bookCommand = _commandBookFixture.Create(metadata: _writtenContentMetadataDtoFixture.Create(releaseInfo: _releaseInfoDtoFixture.Create(releaseCountry: new Faker().Random.String2(3))));
|
||||
|
||||
// Act
|
||||
List<Error> result = _validator.TestValidate(bookCommand);
|
||||
|
||||
// Assert
|
||||
result.ShouldHaveValidationError(Errors.Metadata.CountryCodeMustBe2CharactersLong);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Validate_WhenReleaseVersionIsValid_ShouldNotHaveValidationError()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user