From 8bbf195b8247cae8650d45bb48059573b3f82686 Mon Sep 17 00:00:00 2001 From: "Daniel Mackay [SSW]" <2636640+danielmackay@users.noreply.github.com> Date: Thu, 13 Feb 2025 16:26:06 +1000 Subject: [PATCH] Removed unneeded interface modifiers --- .../Common/Interfaces/ICurrentUserService.cs | 2 +- src/Domain/Common/Interfaces/IAggregateRoot.cs | 2 +- src/Domain/Common/Interfaces/IAuditable.cs | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Application/Common/Interfaces/ICurrentUserService.cs b/src/Application/Common/Interfaces/ICurrentUserService.cs index 49b177f2..201a931f 100644 --- a/src/Application/Common/Interfaces/ICurrentUserService.cs +++ b/src/Application/Common/Interfaces/ICurrentUserService.cs @@ -2,5 +2,5 @@ public interface ICurrentUserService { - public string? UserId { get; } + string? UserId { get; } } \ No newline at end of file diff --git a/src/Domain/Common/Interfaces/IAggregateRoot.cs b/src/Domain/Common/Interfaces/IAggregateRoot.cs index 8a4fc80e..4107083d 100644 --- a/src/Domain/Common/Interfaces/IAggregateRoot.cs +++ b/src/Domain/Common/Interfaces/IAggregateRoot.cs @@ -2,7 +2,7 @@ public interface IAggregateRoot { - public void AddDomainEvent(IDomainEvent domainEvent); + void AddDomainEvent(IDomainEvent domainEvent); IReadOnlyList PopDomainEvents(); } \ No newline at end of file diff --git a/src/Domain/Common/Interfaces/IAuditable.cs b/src/Domain/Common/Interfaces/IAuditable.cs index f01b15f4..3a83b23e 100644 --- a/src/Domain/Common/Interfaces/IAuditable.cs +++ b/src/Domain/Common/Interfaces/IAuditable.cs @@ -2,12 +2,12 @@ public interface IAuditable { - public DateTimeOffset CreatedAt { get; } - public string? CreatedBy { get; } // TODO: String as userId? (https://github.com/SSWConsulting/SSW.CleanArchitecture/issues/76) - public DateTimeOffset? UpdatedAt { get; } - public string? UpdatedBy { get; } // TODO: String as userId? (https://github.com/SSWConsulting/SSW.CleanArchitecture/issues/76) + DateTimeOffset CreatedAt { get; } + string? CreatedBy { get; } // TODO: String as userId? (https://github.com/SSWConsulting/SSW.CleanArchitecture/issues/76) + DateTimeOffset? UpdatedAt { get; } + string? UpdatedBy { get; } // TODO: String as userId? (https://github.com/SSWConsulting/SSW.CleanArchitecture/issues/76) - public void SetCreated(DateTimeOffset createdAt, string? createdBy); + void SetCreated(DateTimeOffset createdAt, string? createdBy); - public void SetUpdated(DateTimeOffset updatedAt, string? updatedBy); + void SetUpdated(DateTimeOffset updatedAt, string? updatedBy); } \ No newline at end of file