Add IHasChangedWhen support and cleanup using statements

Introduced IHasChangedWhen interface to EnvelopeReceiver and History.
Added HasEmailAndName property to EnvelopeReceiver.
Updated AutoMapperAuditingExtensions to map ChangedWhen to UTC.
Removed redundant using statements and fixed formatting.
This commit is contained in:
2026-02-11 10:31:22 +01:00
parent c8ca1ef22a
commit 03e3e0eaf4
4 changed files with 5 additions and 3 deletions

View File

@@ -1,4 +1,3 @@
using System;
using AutoMapper;
using EnvelopeGenerator.Domain.Interfaces.Auditing;
@@ -22,4 +21,4 @@ public static class AutoMapperAuditingExtensions
public static IMappingExpression<TSource, TDestination> MapChangedWhen<TSource, TDestination>(this IMappingExpression<TSource, TDestination> expression)
where TDestination : IHasChangedWhen
=> expression.ForMember(dest => dest.ChangedWhen, opt => opt.MapFrom(_ => DateTime.UtcNow));
}
}