diff --git a/EnvelopeGenerator.Application/Common/Dto/SignatureDto.cs b/EnvelopeGenerator.Application/Common/Dto/SignatureDto.cs index 9aa0a843..976bf994 100644 --- a/EnvelopeGenerator.Application/Common/Dto/SignatureDto.cs +++ b/EnvelopeGenerator.Application/Common/Dto/SignatureDto.cs @@ -9,7 +9,7 @@ namespace EnvelopeGenerator.Application.Common.Dto; /// Data Transfer Object representing a positioned element assigned to a document receiver. /// [ApiExplorerSettings(IgnoreApi = true)] -public class SignatureDto : ISignature +public class SignatureDto : IDocReceiverElement { /// /// Gets or sets the unique identifier of the element. diff --git a/EnvelopeGenerator.Domain/Entities/DocReceiverElement.cs b/EnvelopeGenerator.Domain/Entities/DocReceiverElement.cs index c7a44977..ed17921d 100644 --- a/EnvelopeGenerator.Domain/Entities/DocReceiverElement.cs +++ b/EnvelopeGenerator.Domain/Entities/DocReceiverElement.cs @@ -11,7 +11,7 @@ using System.Collections.Generic; namespace EnvelopeGenerator.Domain.Entities { [Table("TBSIG_DOCUMENT_RECEIVER_ELEMENT", Schema = "dbo")] - public class DocReceiverElement : ISignature, IHasReceiver, IHasAddedWhen, IUpdateAuditable + public class DocReceiverElement : IDocReceiverElement, IHasReceiver, IHasAddedWhen, IUpdateAuditable { public DocReceiverElement() { diff --git a/EnvelopeGenerator.Domain/Interfaces/ISignature.cs b/EnvelopeGenerator.Domain/Interfaces/IDocReceiverElement.cs similarity index 79% rename from EnvelopeGenerator.Domain/Interfaces/ISignature.cs rename to EnvelopeGenerator.Domain/Interfaces/IDocReceiverElement.cs index 6e7ca530..0b0829c6 100644 --- a/EnvelopeGenerator.Domain/Interfaces/ISignature.cs +++ b/EnvelopeGenerator.Domain/Interfaces/IDocReceiverElement.cs @@ -1,6 +1,6 @@ namespace EnvelopeGenerator.Domain.Interfaces { - public interface ISignature + public interface IDocReceiverElement { int Page { get; set; } diff --git a/EnvelopeGenerator.PdfEditor/Pdf.cs b/EnvelopeGenerator.PdfEditor/Pdf.cs index 22011f72..f5790adf 100644 --- a/EnvelopeGenerator.PdfEditor/Pdf.cs +++ b/EnvelopeGenerator.PdfEditor/Pdf.cs @@ -103,7 +103,7 @@ namespace EnvelopeGenerator.PdfEditor #endregion public Pdf Background(IEnumerable signatures, double widthPx = 1.9500000000000002, double heightPx = 2.52) - where TSignature : ISignature + where TSignature : IDocReceiverElement { foreach (var signature in signatures) Page(signature.Page, page =>