Refactor auditing interfaces to new Auditing namespace

Moved auditing interfaces to EnvelopeGenerator.Domain.Interfaces.Auditing. Updated entity classes to reference the new namespace. Added ICreationAuditable and IUpdateAuditable interfaces to improve code organization and clarify auditing responsibilities.
This commit is contained in:
2026-02-09 15:55:20 +01:00
parent c674a450d8
commit 89db852705
13 changed files with 25 additions and 10 deletions

View File

@@ -0,0 +1,6 @@
namespace EnvelopeGenerator.Domain.Interfaces.Auditing
{
public interface ICreationAuditable : IHasAddedWhen, IHasAddedWho
{
}
}

View File

@@ -0,0 +1,11 @@
#if NETFRAMEWORK
using System;
#endif
namespace EnvelopeGenerator.Domain.Interfaces.Auditing
{
public interface IHasAddedWhen
{
DateTime AddedWhen { get; set; }
}
}

View File

@@ -0,0 +1,7 @@
namespace EnvelopeGenerator.Domain.Interfaces.Auditing
{
public interface IHasAddedWho
{
string AddedWho { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
#if NETFRAMEWORK
using System;
#endif
namespace EnvelopeGenerator.Domain.Interfaces.Auditing
{
public interface IHasChangedWhen
{
DateTime? ChangedWhen { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
namespace EnvelopeGenerator.Domain.Interfaces.Auditing
{
public interface IHasChangedWho
{
string
#if nullable
?
#endif
ChangedWho { get; set; }
}
}

View File

@@ -0,0 +1,6 @@
namespace EnvelopeGenerator.Domain.Interfaces.Auditing
{
public interface IUpdateAuditable : IHasChangedWhen, IHasChangedWho
{
}
}