Remove IDocument interface and related dependencies

Decoupled `Document` and `DocumentDetailsDto` from the `IDocument`
interface by removing its implementation. Eliminated the `ElementsBase`
property from both classes as it was tied to the interface.

Simplified the `FinalizeEnvelopeCommandHandler` constructor by
removing the unused `HistoryRepo` parameter.

Deleted the `IDocument` interface and its extension methods, including
`IsSigned`, to reduce unnecessary abstractions and improve code
maintainability.
This commit is contained in:
2026-11-26 18:03:31 +01:00
parent 8423f95999
commit 4b3358828f
4 changed files with 4 additions and 43 deletions

View File

@@ -5,7 +5,7 @@ namespace EnvelopeGenerator.Application.Common.Dto;
/// <summary>
/// Data Transfer Object representing document metadata and elements without binary payload.
/// </summary>
public record DocumentDetailsDto : IDocument
public record DocumentDetailsDto
{
/// <summary>
/// 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.
/// </summary>
public IEnumerable<DocReceiverElementDto>? Elements { get; init; }
/// <summary>
///
/// </summary>
public IEnumerable<IDocReceiverElement>? ElementsBase => Elements;
}