first commit

This commit is contained in:
2026-02-26 14:04:18 +07:00
parent 57ac80a666
commit 4b7236493f
92 changed files with 4999 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using FluentValidation;
namespace MyNewProjectName.Application.Features.Sample.Commands.CreateSample;
/// <summary>
/// Validator for CreateSampleCommand
/// </summary>
public class CreateSampleCommandValidator : AbstractValidator<CreateSampleCommand>
{
public CreateSampleCommandValidator()
{
RuleFor(x => x.Name)
.NotEmpty().WithMessage("Name is required.")
.MaximumLength(200).WithMessage("Name must not exceed 200 characters.");
RuleFor(x => x.Description)
.MaximumLength(1000).WithMessage("Description must not exceed 1000 characters.");
}
}