mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 06:11:10 +00:00
Replaces FluentValidation and Mediator command/queries handling with custom implementations.
This commit is contained in:
1 parent
9a5c7473f9
commit
2d1c6b1ab8
297 files changed
+3619
-3045
No files matched your search
+2
-2
@@ -30,7 +30,7 @@ public static class ValidatorTestExtensions
|
||||
/// <param name="expectedError">The error that should not be present in the validation results.</param>
|
||||
public static void ShouldNotHaveValidationError(this List<Error> errors, Error expectedError)
|
||||
{
|
||||
Assert.DoesNotContain(errors, error => error.Code == expectedError.Code);
|
||||
Assert.DoesNotContain(errors, error => error.Description == expectedError.Description);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -40,7 +40,7 @@ public static class ValidatorTestExtensions
|
||||
/// <param name="expectedError">The error that should be present in the validation results.</param>
|
||||
public static void ShouldHaveValidationError(this List<Error> errors, Error expectedError)
|
||||
{
|
||||
Assert.Contains(errors, error => error.Code == expectedError.Code);
|
||||
Assert.Contains(errors, error => error.Description == expectedError.Description);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user