using FluentValidation;
using MembershipService.API.Application.Commands;

namespace MembershipService.API.Application.Validations;

/// <summary>
/// EN: Validator for AddStampCommand.
/// VI: Validator cho AddStampCommand.
/// </summary>
public class AddStampCommandValidator : AbstractValidator<AddStampCommand>
{
    public AddStampCommandValidator()
    {
        RuleFor(x => x.ShopId)
            .NotEmpty()
            .WithMessage("ShopId is required / ShopId la bat buoc");

        RuleFor(x => x.MemberId)
            .NotEmpty()
            .WithMessage("MemberId is required / MemberId la bat buoc");
    }
}
