using FluentValidation;

using Monitoring.Core.Domain.UserLogManagement;

namespace Monitoring.Features.Events.ResetAlarms;

public class ResetAlarmsValidator : AbstractValidator<ResetAlarmsRequest>
{
	public ResetAlarmsValidator()
	{
		_ = RuleFor(x => x.AssetIdList).NotEmpty();
		_ = RuleFor(x => x.Message).NotEmpty()
			.MinimumLength(UserLogInformation.MinLength)
			.MaximumLength(UserLogInformation.MaxLength);
	}
}