diff --git a/EnvelopeGenerator.Application/Common/Dto/DocumentDetailsDto.cs b/EnvelopeGenerator.Application/Common/Dto/DocumentDetailsDto.cs
index 280caaa4..e83964f5 100644
--- a/EnvelopeGenerator.Application/Common/Dto/DocumentDetailsDto.cs
+++ b/EnvelopeGenerator.Application/Common/Dto/DocumentDetailsDto.cs
@@ -5,7 +5,7 @@ namespace EnvelopeGenerator.Application.Common.Dto;
///
/// Data Transfer Object representing document metadata and elements without binary payload.
///
-public record DocumentDetailsDto : IDocument
+public record DocumentDetailsDto
{
///
/// Gets or sets the unique identifier of the document.
@@ -26,9 +26,4 @@ public record DocumentDetailsDto : IDocument
/// Gets or sets the collection of elements associated with the document for receiver interactions, if any.
///
public IEnumerable? Elements { get; init; }
-
- ///
- ///
- ///
- public IEnumerable? ElementsBase => Elements;
}
diff --git a/EnvelopeGenerator.Application/PdfSigning/FinalizeEnvelopeCommand.cs b/EnvelopeGenerator.Application/PdfSigning/FinalizeEnvelopeCommand.cs
index ca99fe9b..8ab42317 100644
--- a/EnvelopeGenerator.Application/PdfSigning/FinalizeEnvelopeCommand.cs
+++ b/EnvelopeGenerator.Application/PdfSigning/FinalizeEnvelopeCommand.cs
@@ -37,7 +37,8 @@ public record FinalizeEnvelopeCommand : EnvelopeQueryBase, IRequest
///
///
///
-public class FinalizeEnvelopeCommandHandler(IRepository Repo, ISender Sender, IEnvelopeNotificationService NtfServer, ILogger Logger, IRepository HistoryRepo) : IRequestHandler
+///
+public class FinalizeEnvelopeCommandHandler(IRepository Repo, ISender Sender, IEnvelopeNotificationService NtfServer, ILogger Logger) : IRequestHandler
{
///
///
diff --git a/EnvelopeGenerator.Domain/Entities/Document.cs b/EnvelopeGenerator.Domain/Entities/Document.cs
index 3820c7ec..d4a00c78 100644
--- a/EnvelopeGenerator.Domain/Entities/Document.cs
+++ b/EnvelopeGenerator.Domain/Entities/Document.cs
@@ -13,7 +13,7 @@ using System.Linq;
namespace EnvelopeGenerator.Domain.Entities
{
[Table("TBSIG_ENVELOPE_DOCUMENT", Schema = "dbo")]
- public class Document : IDocument, IHasEnvelope, IHasAddedWhen
+ public class Document : IHasEnvelope, IHasAddedWhen
{
public Document()
{
@@ -66,12 +66,6 @@ namespace EnvelopeGenerator.Domain.Entities
#endif
Elements { get; set; }
- public IEnumerable
-#if nullable
- ?
-#endif
- ElementsBase => Elements;
-
[ForeignKey("EnvelopeId")]
public virtual Envelope
#if nullable
diff --git a/EnvelopeGenerator.Domain/Interfaces/IDocument.cs b/EnvelopeGenerator.Domain/Interfaces/IDocument.cs
deleted file mode 100644
index 90a5fd77..00000000
--- a/EnvelopeGenerator.Domain/Interfaces/IDocument.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-namespace EnvelopeGenerator.Domain.Interfaces
-{
- public interface IDocument
- {
- IEnumerable
-#if nullable
- ?
-#endif
- ElementsBase { get; }
- }
-
- public static class DocumentExtensions
- {
- public static bool IsSigned(this IDocument document)
- {
- if(document.ElementsBase == null)
- throw new ArgumentNullException(nameof(document.ElementsBase), "Elements collection cannot be null. Please add with Includ()");
-
- foreach (var element in document.ElementsBase)
- if (!element.IsSigned())
- return false;
-
- return true;
- }
- }
-}