Standardisierung der Struktur von Mapping-Profildateien

This commit is contained in:
tekh 2025-08-21 16:43:50 +02:00
parent fcf00171de
commit f42218802d
4 changed files with 14 additions and 12 deletions

View File

@ -1,4 +1,5 @@
using AutoMapper;
using EnvelopeGenerator.Application.EmailTemplates.Queries.Read;
using EnvelopeGenerator.Domain.Entities;
using System;
using System.Collections.Generic;
@ -6,17 +7,17 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EnvelopeGenerator.Application.EmailTemplates.Queries.Read;
namespace EnvelopeGenerator.Application.EmailTemplates;
/// <summary>
///
/// </summary>
public class ReadEmailTemplateMappingProfile : Profile
public class MappingProfile : Profile
{
/// <summary>
///
/// </summary>
public ReadEmailTemplateMappingProfile()
public MappingProfile()
{
CreateMap<EmailTemplate, ReadEmailTemplateResponse>();
}

View File

@ -3,17 +3,17 @@ using EnvelopeGenerator.Application.Dto.Receiver;
using EnvelopeGenerator.Application.Envelopes.Commands;
using EnvelopeGenerator.Domain.Entities;
namespace EnvelopeGenerator.Application.EnvelopeReceivers.Commands;
namespace EnvelopeGenerator.Application.EnvelopeReceivers;
/// <summary>
///
/// </summary>
public class CreateEnvelopeReceiverMappingProfile : Profile
public class MappingProfile : Profile
{
/// <summary>
///
/// </summary>
public CreateEnvelopeReceiverMappingProfile()
public MappingProfile()
{
CreateMap<Envelope, CreateEnvelopeResponse>();
CreateMap<Receiver, ReceiverReadDto>();

View File

@ -2,17 +2,17 @@
using EnvelopeGenerator.Application.EnvelopeReceivers.Commands;
using EnvelopeGenerator.Domain.Entities;
namespace EnvelopeGenerator.Application.Envelopes.Commands;
namespace EnvelopeGenerator.Application.Envelopes;
/// <summary>
///
/// </summary>
public class CreateEnvelopeMappingProfile : Profile
public class MappingProfile : Profile
{
/// <summary>
///
/// </summary>
public CreateEnvelopeMappingProfile()
public MappingProfile()
{
CreateMap<Envelope, CreateEnvelopeReceiverResponse>();
}

View File

@ -1,17 +1,18 @@
using AutoMapper;
using EnvelopeGenerator.Application.Histories.Queries.Read;
using EnvelopeGenerator.Domain.Entities;
namespace EnvelopeGenerator.Application.Histories.Queries.Read;
namespace EnvelopeGenerator.Application.Histories;
/// <summary>
///
/// </summary>
public class ReadHistoryMappingProfile: Profile
public class MappingProfile: Profile
{
/// <summary>
///
/// </summary>
public ReadHistoryMappingProfile()
public MappingProfile()
{
CreateMap<EnvelopeHistory, ReadHistoryResponse>();
}