using FluentValidation;

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

/// <summary>
/// Validator for AssignStoryCommand
/// </summary>
public sealed class AssignStoryCommandValidator : AbstractValidator<AssignStoryCommand>
{
    public AssignStoryCommandValidator()
    {
        RuleFor(x => x.StoryId)
            .NotEmpty().WithMessage("Story ID is required");

        RuleFor(x => x.AssigneeId)
            .NotEmpty().WithMessage("Assignee ID is required");
    }
}
