Finishline #137

Merged
khwezi merged 10 commits from finishline into main 2026-10-11 07:50:36 +02:00
53 changed files with 209 additions and 254 deletions
Showing only changes of commit 1ebd83a2f4 - Show all commits
@@ -90,7 +90,7 @@
<!-- Shared Static Usings --> <!-- Shared Static Usings -->
<ItemGroup> <ItemGroup>
<Using Static="true" Include="PostFundManagement.Application.Extensions.General" /> <Using Static="true" Include="PostFundManagement.Application.Extensions.General" />
<Using Static="true" Alias="Problems" Include="Microsoft.AspNetCore.Mvc.ProblemDetails" /> <Using Alias="Problems" Include="Microsoft.AspNetCore.Mvc.ProblemDetails" />
</ItemGroup> </ItemGroup>
<!-- Shared Global Usings --> <!-- Shared Global Usings -->
@@ -1,6 +0,0 @@
namespace PostFundManagement.Application.Abstractions.Services;
public interface IToolService
{
Task<Result<string>> EncodeLong(long id, CancellationToken cancellationToken);
}
@@ -1,5 +1,4 @@
using PostFundManagement.Infrastructure.Database; using PostFundManagement.Infrastructure.Database;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Extensions; namespace PostFundManagement.Application.Extensions;
@@ -1,6 +1,5 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using PostFundManagement.Domain.Quartz; using PostFundManagement.Domain.Quartz;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Extensions; namespace PostFundManagement.Application.Extensions;
@@ -1,6 +1,5 @@
using PostFundManagement.Application.Services.Shared; using PostFundManagement.Application.Services.Shared;
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Extensions; namespace PostFundManagement.Application.Extensions;
@@ -5,7 +5,6 @@ using PostFundManagement.Domain.Configuration.Security;
using PostFundManagement.Domain.Extensions; using PostFundManagement.Domain.Extensions;
using PostFundManagement.Infrastructure.Database; using PostFundManagement.Infrastructure.Database;
using PostFundManagement.Infrastructure.Security; using PostFundManagement.Infrastructure.Security;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Extensions; namespace PostFundManagement.Application.Extensions;
@@ -1,6 +1,4 @@
using PostFundManagement.Application.Abstractions.Services; using PostFundManagement.Application.Abstractions.Services;
using static PostFundManagement.Application.Extensions.General;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Filters; namespace PostFundManagement.Application.Filters;
@@ -1,6 +1,5 @@
using PostFundManagement.Application.Extensions; using PostFundManagement.Application.Extensions;
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Filters; namespace PostFundManagement.Application.Filters;
@@ -36,6 +36,12 @@
<Using Include="Microsoft.AspNetCore.OpenApi" /> <Using Include="Microsoft.AspNetCore.OpenApi" />
</ItemGroup> </ItemGroup>
<!-- Shared Static Usings -->
<ItemGroup>
<Using Static="true" Include="PostFundManagement.Application.Extensions.General" />
<Using Static="true" Include="PostFundManagement.Domain.Extensions.Constants" />
</ItemGroup>
<!-- Shared Usings --> <!-- Shared Usings -->
<ItemGroup> <ItemGroup>
<Using Include="Humanizer" /> <Using Include="Humanizer" />
@@ -3,7 +3,6 @@ using PostFundManagement.Application.Extensions;
using PostFundManagement.Application.Services.Shared; using PostFundManagement.Application.Services.Shared;
using PostFundManagement.Domain; using PostFundManagement.Domain;
using PostFundManagement.Domain.Models; using PostFundManagement.Domain.Models;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Services.Communications; namespace PostFundManagement.Application.Services.Communications;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain; using PostFundManagement.Domain;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Services.Communications; namespace PostFundManagement.Application.Services.Communications;
@@ -3,7 +3,6 @@ using PostFundManagement.Application.Extensions;
using PostFundManagement.Application.Services.Shared; using PostFundManagement.Application.Services.Shared;
using PostFundManagement.Domain; using PostFundManagement.Domain;
using PostFundManagement.Domain.Models; using PostFundManagement.Domain.Models;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Services.Evidence; namespace PostFundManagement.Application.Services.Evidence;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain; using PostFundManagement.Domain;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Services.Evidence; namespace PostFundManagement.Application.Services.Evidence;
@@ -3,7 +3,6 @@ using PostFundManagement.Application.Extensions;
using PostFundManagement.Application.Services.Shared; using PostFundManagement.Application.Services.Shared;
using PostFundManagement.Domain; using PostFundManagement.Domain;
using PostFundManagement.Domain.Models; using PostFundManagement.Domain.Models;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Services.Execution; namespace PostFundManagement.Application.Services.Execution;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain; using PostFundManagement.Domain;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Services.Execution; namespace PostFundManagement.Application.Services.Execution;
@@ -3,7 +3,6 @@ using PostFundManagement.Application.Extensions;
using PostFundManagement.Application.Services.Shared; using PostFundManagement.Application.Services.Shared;
using PostFundManagement.Domain; using PostFundManagement.Domain;
using PostFundManagement.Domain.Models; using PostFundManagement.Domain.Models;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Services.Governance; namespace PostFundManagement.Application.Services.Governance;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain; using PostFundManagement.Domain;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Services.Governance; namespace PostFundManagement.Application.Services.Governance;
@@ -3,7 +3,6 @@ using PostFundManagement.Application.Extensions;
using PostFundManagement.Application.Services.Shared; using PostFundManagement.Application.Services.Shared;
using PostFundManagement.Domain; using PostFundManagement.Domain;
using PostFundManagement.Domain.Models; using PostFundManagement.Domain.Models;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Services.Grants; namespace PostFundManagement.Application.Services.Grants;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain; using PostFundManagement.Domain;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Services.Grants; namespace PostFundManagement.Application.Services.Grants;
@@ -3,7 +3,6 @@ using PostFundManagement.Application.Extensions;
using PostFundManagement.Application.Services.Shared; using PostFundManagement.Application.Services.Shared;
using PostFundManagement.Domain; using PostFundManagement.Domain;
using PostFundManagement.Domain.Models; using PostFundManagement.Domain.Models;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Services.Projects; namespace PostFundManagement.Application.Services.Projects;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain; using PostFundManagement.Domain;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Services.Projects; namespace PostFundManagement.Application.Services.Projects;
@@ -1,6 +1,5 @@
using PostFundManagement.Application.Abstractions.Services; using PostFundManagement.Application.Abstractions.Services;
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Services.Shared; namespace PostFundManagement.Application.Services.Shared;
@@ -3,7 +3,6 @@ using PostFundManagement.Application.Extensions;
using PostFundManagement.Application.Services.Shared; using PostFundManagement.Application.Services.Shared;
using PostFundManagement.Domain; using PostFundManagement.Domain;
using PostFundManagement.Domain.Models; using PostFundManagement.Domain.Models;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Application.Services.Users; namespace PostFundManagement.Application.Services.Users;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
@@ -1,5 +1,3 @@
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
[EntityTypeConfiguration<AuditLogConfiguration, AuditLog>] [EntityTypeConfiguration<AuditLogConfiguration, AuditLog>]
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
@@ -1,5 +1,3 @@
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
[EntityTypeConfiguration<OrganisationConfiguration, Organisation>] [EntityTypeConfiguration<OrganisationConfiguration, Organisation>]
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
@@ -1,5 +1,4 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
+1 -3
View File
@@ -1,6 +1,4 @@
using static PostFundManagement.Domain.Extensions.Constants; namespace PostFundManagement.Domain.Entities;
namespace PostFundManagement.Domain.Entities;
[EntityTypeConfiguration<TenantConfiguration, Tenant>] [EntityTypeConfiguration<TenantConfiguration, Tenant>]
public class Tenant : Models.Tenant public class Tenant : Models.Tenant
@@ -1,5 +1,3 @@
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Entities; namespace PostFundManagement.Domain.Entities;
[EntityTypeConfiguration<UserConfiguration, User>] [EntityTypeConfiguration<UserConfiguration, User>]
+14 -14
View File
@@ -9,7 +9,7 @@ public enum EmailStatuses : int
Disconnected = 4, Disconnected = 4,
TooManyConnections = 5, TooManyConnections = 5,
ConnectionAborted = 6, ConnectionAborted = 6,
Success = 7 Success = 7,
} }
public enum NotificationStatus : int public enum NotificationStatus : int
@@ -22,7 +22,7 @@ public enum NotificationStatus : int
Read = 6, Read = 6,
Failed = 7, Failed = 7,
Cancelled = 8, Cancelled = 8,
Bounced = 9 Bounced = 9,
} }
public enum NotificationPlatform : int public enum NotificationPlatform : int
@@ -35,7 +35,7 @@ public enum NotificationPlatform : int
Teams = 6, Teams = 6,
Slack = 7, Slack = 7,
Webhook = 8, Webhook = 8,
Other = 99 Other = 99,
} }
public enum EvidenceType : int public enum EvidenceType : int
@@ -51,7 +51,7 @@ public enum EvidenceType : int
ProcurementDocument = 9, ProcurementDocument = 9,
TechnicalSpecificationOrDesign = 10, TechnicalSpecificationOrDesign = 10,
VideoRecording = 11, VideoRecording = 11,
Other = 99 Other = 99,
} }
public enum ProjectType : int public enum ProjectType : int
@@ -66,7 +66,7 @@ public enum ProjectType : int
SocialImpactAndCommunityDevelopment = 8, SocialImpactAndCommunityDevelopment = 8,
TechnologyTransferAndAdoption = 9, TechnologyTransferAndAdoption = 9,
Innovation = 10, Innovation = 10,
Other = 99 Other = 99,
} }
public enum IndustrySector : int public enum IndustrySector : int
@@ -88,7 +88,7 @@ public enum IndustrySector : int
RetailAndConsumerGoods = 15, RetailAndConsumerGoods = 15,
TourismAndHospitality = 16, TourismAndHospitality = 16,
WaterAndSanitation = 17, WaterAndSanitation = 17,
Other = 99 Other = 99,
} }
public enum OrganisationType : int public enum OrganisationType : int
@@ -132,7 +132,7 @@ public enum OrganisationType : int
// Consortium & Special Vehicles // Consortium & Special Vehicles
Consortium = 26, // Unincorporated joint venture Consortium = 26, // Unincorporated joint venture
SpecialPurposeVehicle = 27 // SPV / Joint Venture Entity SpecialPurposeVehicle = 27, // SPV / Joint Venture Entity
} }
public enum Priority : int public enum Priority : int
@@ -140,7 +140,7 @@ public enum Priority : int
Low = 1, Low = 1,
Medium = 2, Medium = 2,
High = 3, High = 3,
Critical = 4 Critical = 4,
} }
public enum UnitOfMeasure : int public enum UnitOfMeasure : int
@@ -153,7 +153,7 @@ public enum UnitOfMeasure : int
Volume = 6, Volume = 6,
DurationDays = 7, DurationDays = 7,
DurationMonths = 8, DurationMonths = 8,
Ratio = 9 Ratio = 9,
} }
public enum ContractStatus : int public enum ContractStatus : int
{ {
@@ -162,7 +162,7 @@ public enum ContractStatus : int
Active = 3, Active = 3,
Expired = 4, Expired = 4,
Terminated = 5, Terminated = 5,
Amended = 6 Amended = 6,
} }
public enum RiskLikelihood : int public enum RiskLikelihood : int
@@ -171,7 +171,7 @@ public enum RiskLikelihood : int
Unlikely = 2, Unlikely = 2,
Possible = 3, Possible = 3,
Likely = 4, Likely = 4,
AlmostCertain = 5 AlmostCertain = 5,
} }
public enum RiskImpact : int public enum RiskImpact : int
@@ -180,7 +180,7 @@ public enum RiskImpact : int
Minor = 2, Minor = 2,
Moderate = 3, Moderate = 3,
Major = 4, Major = 4,
Critical = 5 Critical = 5,
} }
public enum ApprovalStatus : int public enum ApprovalStatus : int
@@ -189,12 +189,12 @@ public enum ApprovalStatus : int
Review = 2, Review = 2,
Approved = 3, Approved = 3,
Rejected = 4, Rejected = 4,
Removed = 5 Removed = 5,
} }
public enum ActivityStatus : int public enum ActivityStatus : int
{ {
Active = 1, Active = 1,
Inactive = 2, Inactive = 2,
Disabled = 3 Disabled = 3,
} }
@@ -1,5 +1,3 @@
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Health; namespace PostFundManagement.Domain.Health;
public sealed class PostgresHealthCheck(IConfiguration configuration) : IHealthCheck public sealed class PostgresHealthCheck(IConfiguration configuration) : IHealthCheck
@@ -1,5 +1,3 @@
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Domain.Health; namespace PostFundManagement.Domain.Health;
public sealed class QuartzHealthCheck(ISchedulerFactory schedulerFactory) : IHealthCheck public sealed class QuartzHealthCheck(ISchedulerFactory schedulerFactory) : IHealthCheck
@@ -6,10 +6,10 @@ public sealed record UpdateUserRequest(string Id, string UserName, string Email,
public sealed record Claim(string ClaimType, string ClaimValue, int? ClaimId = null); public sealed record Claim(string ClaimType, string ClaimValue, int? ClaimId = null);
public record ClaimsResponse(int TotalCount, int PageSize, ICollection<Claim> Claims); public sealed record ClaimsResponse(int TotalCount, int PageSize, ICollection<Claim> Claims);
public sealed record UserResponse(string Id, string UserName, string Email, bool IsLockedOut, bool LockoutEnabled); public sealed record UserResponse(string Id, string UserName, string Email, bool IsLockedOut, bool LockoutEnabled);
public record Role(string Id, string Name); public sealed record Role(string Id, string Name);
public record RolesResponse(int TotalCount, int PageSize, ICollection<Role> Roles); public sealed record RolesResponse(int TotalCount, int PageSize, ICollection<Role> Roles);
@@ -30,7 +30,7 @@
</ItemGroup> </ItemGroup>
<!-- Security (IODC)--> <!-- Security (IODC)-->
<ItemGroup> <ItemGroup>
<PackageReference Include="IdentityModel.AspNetCore" Version="4.3.0" /> <PackageReference Include="IdentityModel.AspNetCore" Version="4.3.0" />
<PackageReference Include="IdentityModel.AspNetCore.OAuth2introspection" Version="6.2.0" /> <PackageReference Include="IdentityModel.AspNetCore.OAuth2introspection" Version="6.2.0" />
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="3.0.1" /> <PackageReference Include="IdentityServer4.AccessTokenValidation" Version="3.0.1" />
@@ -50,37 +50,37 @@
<Using Include="Microsoft.AspNetCore.Authentication.Cookies" /> <Using Include="Microsoft.AspNetCore.Authentication.Cookies" />
<Using Include="IdentityModel.AspNetCore.OAuth2Introspection" /> <Using Include="IdentityModel.AspNetCore.OAuth2Introspection" />
<Using Include="Microsoft.AspNetCore.Authentication.JwtBearer" /> <Using Include="Microsoft.AspNetCore.Authentication.JwtBearer" />
</ItemGroup> </ItemGroup>
<!-- API SDK Composer--> <!-- API SDK Composer-->
<ItemGroup> <ItemGroup>
<PackageReference Include="Refit.HttpClientFactory" Version="15.2.0" /> <PackageReference Include="Refit.HttpClientFactory" Version="15.2.0" />
<Using Include="Refit" /> <Using Include="Refit" />
</ItemGroup> </ItemGroup>
<!-- API Versioning --> <!-- API Versioning -->
<ItemGroup> <ItemGroup>
<PackageReference Include="AccessTokenClient.Extensions" Version="5.1.0" /> <PackageReference Include="AccessTokenClient.Extensions" Version="5.1.0" />
<PackageReference Include="Asp.Versioning.Abstractions" Version="10.2.1" /> <PackageReference Include="Asp.Versioning.Abstractions" Version="10.2.1" />
<PackageReference Include="Asp.Versioning.Http" Version="10.2.3" /> <PackageReference Include="Asp.Versioning.Http" Version="10.2.3" />
<PackageReference Include="Asp.Versioning.Mvc.ApiExplorer" Version="10.2.1" /> <PackageReference Include="Asp.Versioning.Mvc.ApiExplorer" Version="10.2.1" />
<Using Include="Asp.Versioning" /> <Using Include="Asp.Versioning" />
</ItemGroup> </ItemGroup>
<!-- API Documentation --> <!-- API Documentation -->
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.12" /> <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.12" />
<PackageReference Include="Scalar.AspNetCore" Version="2.17.4" /> <PackageReference Include="Scalar.AspNetCore" Version="2.17.4" />
<Using Include="Scalar.AspNetCore" /> <Using Include="Scalar.AspNetCore" />
<Using Include="Microsoft.OpenApi" /> <Using Include="Microsoft.OpenApi" />
<Using Include="Microsoft.AspNetCore.OpenApi" /> <Using Include="Microsoft.AspNetCore.OpenApi" />
</ItemGroup> </ItemGroup>
<!-- Quartz Scheduler--> <!-- Quartz Scheduler-->
<ItemGroup> <ItemGroup>
<PackageReference Include="Hashids.net" Version="1.7.0" /> <PackageReference Include="Hashids.net" Version="1.7.0" />
<PackageReference Include="Meziantou.Analyzer" Version="3.0.259"> <PackageReference Include="Meziantou.Analyzer" Version="3.0.259">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
@@ -96,10 +96,10 @@
<!-- Global Usings --> <!-- Global Usings -->
<Using Include="Quartz" /> <Using Include="Quartz" />
</ItemGroup> </ItemGroup>
<!-- Configuration --> <!-- Configuration -->
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.12" /> <PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.12" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="10.0.12" /> <PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="10.0.12" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="10.0.12" /> <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="10.0.12" />
@@ -108,10 +108,10 @@
<!-- Global Usings --> <!-- Global Usings -->
<Using Include="Microsoft.Extensions.Configuration" /> <Using Include="Microsoft.Extensions.Configuration" />
</ItemGroup> </ItemGroup>
<!-- Health Checks --> <!-- Health Checks -->
<ItemGroup> <ItemGroup>
<PackageReference Include="AspNetCore.HealthChecks.UI.Client" Version="9.0.0" /> <PackageReference Include="AspNetCore.HealthChecks.UI.Client" Version="9.0.0" />
<PackageReference Include="AspNetCore.HealthChecks.UI" Version="9.0.0" /> <PackageReference Include="AspNetCore.HealthChecks.UI" Version="9.0.0" />
<PackageReference Include="AspNetCore.HealthChecks.UI.Core" Version="9.0.0" /> <PackageReference Include="AspNetCore.HealthChecks.UI.Core" Version="9.0.0" />
@@ -124,10 +124,10 @@
<!-- Global Usings --> <!-- Global Usings -->
<Using Include="Microsoft.Extensions.Diagnostics.HealthChecks" /> <Using Include="Microsoft.Extensions.Diagnostics.HealthChecks" />
<Using Include="Microsoft.AspNetCore.Diagnostics.HealthChecks" /> <Using Include="Microsoft.AspNetCore.Diagnostics.HealthChecks" />
</ItemGroup> </ItemGroup>
<!-- Open Telemetry --> <!-- Open Telemetry -->
<ItemGroup> <ItemGroup>
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.18.0" /> <PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.18.0" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.18.0" /> <PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.18.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.18.0" /> <PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.18.0" />
@@ -141,10 +141,10 @@
<Using Include="OpenTelemetry.Logs" /> <Using Include="OpenTelemetry.Logs" />
<Using Include="OpenTelemetry.Metrics" /> <Using Include="OpenTelemetry.Metrics" />
<Using Include="OpenTelemetry.Trace" /> <Using Include="OpenTelemetry.Trace" />
</ItemGroup> </ItemGroup>
<!-- Database --> <!-- Database -->
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.12" /> <PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.12" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.12"> <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.12">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
@@ -164,30 +164,30 @@
<Using Include="Microsoft.EntityFrameworkCore" /> <Using Include="Microsoft.EntityFrameworkCore" />
<Using Include="Microsoft.EntityFrameworkCore.Design" /> <Using Include="Microsoft.EntityFrameworkCore.Design" />
<Using Include="Microsoft.EntityFrameworkCore.Metadata.Builders" /> <Using Include="Microsoft.EntityFrameworkCore.Metadata.Builders" />
</ItemGroup> </ItemGroup>
<!-- Email --> <!-- Email -->
<ItemGroup> <ItemGroup>
<PackageReference Include="MailKit" Version="4.18.0" /> <PackageReference Include="MailKit" Version="4.18.0" />
<PackageReference Include="MimeKit" Version="4.18.0" /> <PackageReference Include="MimeKit" Version="4.18.0" />
<!-- Global Usings--> <!-- Global Usings-->
<Using Include="MimeKit" /> <Using Include="MimeKit" />
<Using Include="MailKit.Net.Smtp" /> <Using Include="MailKit.Net.Smtp" />
</ItemGroup> </ItemGroup>
<!-- CQRS --> <!-- CQRS -->
<ItemGroup> <ItemGroup>
<PackageReference Include="FluentResults" Version="4.0.0" /> <PackageReference Include="FluentResults" Version="4.0.0" />
<PackageReference Include="Mediator.Abstractions" Version="3.0.2" /> <PackageReference Include="Mediator.Abstractions" Version="3.0.2" />
<!-- Global Usings --> <!-- Global Usings -->
<Using Include="FluentResults" /> <Using Include="FluentResults" />
<Using Include="Mediator" /> <Using Include="Mediator" />
</ItemGroup> </ItemGroup>
<!-- Amazon S3 SDK --> <!-- Amazon S3 SDK -->
<ItemGroup> <ItemGroup>
<PackageReference Include="AWSSDK.Extensions.NetCore.Setup" Version="4.0.101.4" /> <PackageReference Include="AWSSDK.Extensions.NetCore.Setup" Version="4.0.101.4" />
<PackageReference Include="AWSSDK.S3" Version="4.0.103.3" /> <PackageReference Include="AWSSDK.S3" Version="4.0.103.3" />
@@ -195,10 +195,15 @@
<Using Include="Amazon.S3" /> <Using Include="Amazon.S3" />
<Using Include="Amazon.S3.Model" /> <Using Include="Amazon.S3.Model" />
<Using Include="Amazon.Runtime" /> <Using Include="Amazon.Runtime" />
</ItemGroup> </ItemGroup>
<!-- Shared Usings --> <!-- Shared Static Usings -->
<ItemGroup> <ItemGroup>
<Using Static="true" Include="PostFundManagement.Domain.Extensions.Constants" />
</ItemGroup>
<!-- Shared Usings -->
<ItemGroup>
<Using Include="System.ComponentModel.DataAnnotations.Schema" /> <Using Include="System.ComponentModel.DataAnnotations.Schema" />
<Using Include="Microsoft.AspNetCore.DataProtection" /> <Using Include="Microsoft.AspNetCore.DataProtection" />
<Using Include="System.Security.Cryptography.X509Certificates" /> <Using Include="System.Security.Cryptography.X509Certificates" />
@@ -224,6 +229,6 @@
<Using Include="System.Security.Cryptography" /> <Using Include="System.Security.Cryptography" />
<Using Include="Microsoft.Extensions.Options" /> <Using Include="Microsoft.Extensions.Options" />
<Using Include="Microsoft.Extensions.Logging" /> <Using Include="Microsoft.Extensions.Logging" />
</ItemGroup> </ItemGroup>
</Project> </Project>
@@ -1,5 +1,3 @@
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Infrastructure.Database.Factories; namespace PostFundManagement.Infrastructure.Database.Factories;
public sealed partial class ApplicationDbContextFactory : IDesignTimeDbContextFactory<ApplicationDbContext> public sealed partial class ApplicationDbContextFactory : IDesignTimeDbContextFactory<ApplicationDbContext>
@@ -1,5 +1,3 @@
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Infrastructure.Database.Factories; namespace PostFundManagement.Infrastructure.Database.Factories;
public sealed class DataProtectionDbContextFactory : IDesignTimeDbContextFactory<DataProtectionDbContext> public sealed class DataProtectionDbContextFactory : IDesignTimeDbContextFactory<DataProtectionDbContext>
@@ -34,6 +34,11 @@
<Using Include="Microsoft.EntityFrameworkCore.Design" /> <Using Include="Microsoft.EntityFrameworkCore.Design" />
</ItemGroup> </ItemGroup>
<!-- Shared Static Usings -->
<ItemGroup>
<Using Static="true" Include="PostFundManagement.Domain.Extensions.Constants" />
</ItemGroup>
<!-- Extensions --> <!-- Extensions -->
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.12" /> <PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.12" />
@@ -1,7 +1,6 @@
using PostFundManagement.Domain.Abstractions; using PostFundManagement.Domain.Abstractions;
using PostFundManagement.Domain.Errors; using PostFundManagement.Domain.Errors;
using PostFundManagement.Domain.Models.Security; using PostFundManagement.Domain.Models.Security;
using static PostFundManagement.Domain.Extensions.Constants;
namespace PostFundManagement.Infrastructure.Security; namespace PostFundManagement.Infrastructure.Security;