using FluentValidation;

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

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