using FluentValidation;

using Monitoring.Common.Validators;

namespace Monitoring.Features.AssetGroups.GetAssetGroupList;

public class GetAssetGroupListValidator : AbstractValidator<GetAssetGroupListRequest>
{
	public GetAssetGroupListValidator()
	{
		_ = RuleFor(x => x).SetValidator(new TableStateValidator());
		_ = RuleFor(x => x.OrganizationId).NotEmpty().When(x => x.OrganizationId.HasValue);
	}
}
