mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-10-16 23:49:19 +02:00
Ports in Application/Abstractions, adapters in Infrastructure, hand-wired AppServices (no reflection, as PublishAot requires). Adds a test project.
17 lines
340 B
C#
17 lines
340 B
C#
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();
|
|
}
|