1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-22 22:16:13 -04:00

Migrate to FluentValidation 9

This commit is contained in:
Stepan Goremykin
2023-04-01 15:03:53 +02:00
committed by Mark McDowall
parent dec6e14036
commit 40e54685b9
40 changed files with 114 additions and 221 deletions
@@ -9,11 +9,12 @@ namespace NzbDrone.Core.Validation.Paths
private readonly ISeriesService _seriesService;
public SeriesPathValidator(ISeriesService seriesService)
: base("Path is already configured for another series")
{
_seriesService = seriesService;
}
protected override string GetDefaultMessageTemplate() => "Path is already configured for another series";
protected override bool IsValid(PropertyValidatorContext context)
{
if (context.PropertyValue == null)