Files
ersatztv/ErsatzTV/Validators/LocalLibraryPathEditViewModelValidator.cs
T
Jason DoveandGitHub 1ab98578ab refactor namespaces and imports (#670)
* re-namespace

* optimize usings

* more usings

* more of the same

* more implicit/global usings

* cleanup all usings

* minor fixes
2022-03-03 15:36:07 -06:00

13 lines
396 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");
}
}