using FluentValidation;
using MissionService.API.Application.Commands;

namespace MissionService.API.Application.Validations;

/// <summary>
/// EN: Validator for StartMissionTaskCommand.
/// VI: Validator cho StartMissionTaskCommand.
/// </summary>
public class StartMissionTaskCommandValidator : AbstractValidator<StartMissionTaskCommand>
{
    public StartMissionTaskCommandValidator()
    {
        RuleFor(x => x.UserId)
            .NotEmpty().WithMessage("User ID is required / ID người dùng là bắt buộc");

        RuleFor(x => x.MissionId)
            .NotEmpty().WithMessage("Mission ID is required / ID nhiệm vụ là bắt buộc");
    }
}
