From e0aa963184843977af98017f235a2023555aea0e Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 4 Mar 2026 14:18:28 +0100 Subject: [PATCH] Add IEnvelope interface and IsReadAndConfirm extension Introduced the IEnvelope interface with an EnvelopeTypeId property in the new EnvelopeGenerator.Domain.Interfaces namespace. Added the EnvelopeExtensions static class with an IsReadAndConfirm extension method to check if EnvelopeTypeId equals 2. --- EnvelopeGenerator.Domain/Interfaces/IEnvelope.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 EnvelopeGenerator.Domain/Interfaces/IEnvelope.cs diff --git a/EnvelopeGenerator.Domain/Interfaces/IEnvelope.cs b/EnvelopeGenerator.Domain/Interfaces/IEnvelope.cs new file mode 100644 index 00000000..bdc709c6 --- /dev/null +++ b/EnvelopeGenerator.Domain/Interfaces/IEnvelope.cs @@ -0,0 +1,15 @@ +namespace EnvelopeGenerator.Domain.Interfaces +{ + public interface IEnvelope + { + int? EnvelopeTypeId { get; set; } + } + + public static class EnvelopeExtensions + { + public static bool IsReadAndConfirm(this IEnvelope envelope) + { + return envelope.EnvelopeTypeId == 2; + } + } +} \ No newline at end of file