refactor: Update Application handlers to convert byte[] to Stream

- ValidatePdfQueryHandler: Convert byte[] → MemoryStream before calling IPdfProcessor
- ValidatePdfAQueryHandler: Same pattern
- Update AutoMapper namespace imports (remove Domain.Models.ValueObjects references)
This commit is contained in:
2026-07-20 11:55:25 +02:00
parent 1de781748b
commit e13e85182a
3 changed files with 19 additions and 6 deletions

View File

@@ -43,5 +43,12 @@ public class MappingProfile : Profile
CreateMap<AlternativeScheme, AlternativeSchemeDto>()
.ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.Name ?? string.Empty))
.ForMember(dest => dest.Instruction, opt => opt.MapFrom(src => src.Instruction ?? string.Empty));
// AttachmentInfo -> AttachmentCheckResult
CreateMap<AttachmentInfo, AttachmentCheckResult>();
// AttachmentMetadata -> AttachmentDto
CreateMap<AttachmentMetadata, AttachmentDto>()
.ForMember(dest => dest.Size, opt => opt.MapFrom(src => src.SizeBytes));
}
}