using FluentValidation;

namespace adas_core.LdapLogin.Configuration;

/// <summary>
/// Validator for LdapConfig. Ensures that all required properties are set and valid.
/// </summary>
public class LdapConfigValidator : AbstractValidator<LdapConfig>
{
    //public LdapConfigValidator()
    //{
    //RuleFor(f => f.Server).NotNull().WithErrorCode("Server is null");
    //RuleFor(f => f.Port).NotNull().WithErrorCode("Port is null");
    //RuleFor(f => f.UserDomainName).NotNull().WithErrorCode("UserDomainName is null");
    //RuleFor(f => f.UserNameProperty).NotNull().WithErrorCode("UserNameProperty is null");
    //RuleFor(f => f.DisplayNameProperty).NotNull().WithErrorCode("DisplayNameProperty is null");
    //RuleFor(f => f.SearchBase).NotNull().WithErrorCode("SearchBase is null");
    //RuleFor(f => f.GroupsProperty).NotNull().WithErrorCode("GroupsProperty is null");
    //RuleFor(f => f.ldapUser).NotNull().WithErrorCode("ldapUser is null");
    //RuleFor(f => f.ldapPassword).NotNull().WithErrorCode("ldapPassword is null");
    //}
}