Introduce layers, ports and a composition root

Ports in Application/Abstractions, adapters in Infrastructure, hand-wired
AppServices (no reflection, as PublishAot requires). Adds a test project.
This commit is contained in:
maj00r
2026-09-04 20:46:51 +02:00
parent aef086e9f0
commit a3137a27c4
26 changed files with 1065 additions and 143 deletions

View File

@@ -0,0 +1,16 @@
using StarterNG.Application.Abstractions;
namespace StarterNG.Tests.Fakes;
/// <summary>A clock frozen at a chosen instant.</summary>
public sealed class FixedClock : IClock
{
public FixedClock(DateTime now)
{
Now = now;
}
public DateTime Now { get; set; }
public DateTime UtcNow => Now.ToUniversalTime();
}