Files
ersatztv/ErsatzTV/Validators/LocalLibraryPathEditViewModelValidator.cs
T
Jason DoveandGitHub c02b83d0d6 code cleanup (#743)
* update tools

* run code cleanup

* update dependencies
2022-04-19 17:47:18 -05:00

14 lines
397 B
C#

using ErsatzTV.ViewModels;
using FluentValidation;
namespace ErsatzTV.Validators;
public class LocalLibraryPathEditViewModelValidator : AbstractValidator<LocalLibraryPathEditViewModel>
{
public LocalLibraryPathEditViewModelValidator()
{
RuleFor(x => x.Path).NotEmpty();
RuleFor(x => x.Path).Must(Directory.Exists).WithMessage("Path must exist on filesystem");
}
}