Updated project and solution files to rename and restructure `DocumentOperator` to `DocumentService`. Modified project references in `DocumentService.API.csproj`, `DocumentService.Application.csproj`, and `DocumentService.Infrastructure.csproj` to reflect the new naming convention. Updated `DocumentService.sln` to remove old project references, add new ones, and adjust configuration and nested project mappings accordingly. This change aligns the project structure with the new naming convention.
20 lines
580 B
C#
20 lines
580 B
C#
using DocumentService.Application.SwissQrCode.Queries;
|
|
using FluentValidation;
|
|
|
|
namespace DocumentService.Application.SwissQrCode.Queries;
|
|
|
|
/// <summary>
|
|
/// Validates ExtractSwissQrCodeQuery before handler execution.
|
|
/// Ensures PdfStream is not null.
|
|
/// </summary>
|
|
public sealed class ExtractSwissQrCodeQueryValidator : AbstractValidator<ExtractSwissQrCodeQuery>
|
|
{
|
|
public ExtractSwissQrCodeQueryValidator()
|
|
{
|
|
// Rule: PdfStream must be provided
|
|
RuleFor(x => x.PdfStream)
|
|
.NotNull()
|
|
.WithMessage("PdfStream is required");
|
|
}
|
|
}
|