Migrate to FluentValidation 9

(cherry picked from commit 40e54685b9e83ed24a3979bfe965c453339ad02e)
This commit is contained in:
Stepan Goremykin
2023-04-01 15:03:53 +02:00
committed by Bogdan
parent 816969d0f5
commit 28f64d9a46
37 changed files with 94 additions and 194 deletions
@@ -8,11 +8,12 @@ namespace NzbDrone.Core.Validation.Paths
private readonly IDiskProvider _diskProvider;
public FileExistsValidator(IDiskProvider diskProvider)
: base("File does not exist")
{
_diskProvider = diskProvider;
}
protected override string GetDefaultMessageTemplate() => "File does not exist";
protected override bool IsValid(PropertyValidatorContext context)
{
if (context.PropertyValue == null)