using FluentValidation;

namespace ColaFlow.Modules.ProjectManagement.Application.Commands.AssignTask;

/// <summary>
/// Validator for AssignTaskCommand
/// </summary>
public sealed class AssignTaskCommandValidator : AbstractValidator<AssignTaskCommand>
{
    public AssignTaskCommandValidator()
    {
        RuleFor(x => x.TaskId)
            .NotEmpty()
            .WithMessage("TaskId is required");
    }
}
