using AutoMapper; using DigitalData.EmailProfiler.Application.Common.Events; using DigitalData.EmailProfiler.Application.EmailSending.Commands; namespace DigitalData.EmailProfiler.Application.Common.Mappings; /// /// AutoMapper profile for Emails /// public class EmailMappingProfile : Profile { public EmailMappingProfile() { // SendEmailCommand -> OutgoingEmailEvent CreateMap() .ForMember(dest => dest.Id, opt => opt.MapFrom(_ => Guid.NewGuid())) .ForMember(dest => dest.QueuedAt, opt => opt.MapFrom(_ => DateTime.Now)); } }