using FluentValidation; using UserManagement.MediatR.Commands; namespace UserManagement.MediatR.Validators { public class AddAppSettingCommandValidator : AbstractValidator { public AddAppSettingCommandValidator() { RuleFor(c => c.Name).NotEmpty().WithMessage("Name is required"); RuleFor(c => c.Key).NotEmpty().WithMessage("Key is required"); RuleFor(c => c.Value).NotEmpty().WithMessage("Value is required"); } } }