Backend/e-suite.UnitTest.Core/e-suite.UnitTestCore/FakeClock.cs
2026-01-20 21:50:10 +00:00

16 lines
439 B
C#

using eSuite.Core.Clock;
namespace e_suite.UnitTestCore;
public class FakeClock : IClock
{
/// <summary>
/// You can set the date and time using this property.
/// </summary>
public DateTimeOffset DateTime { get; set; } = DateTimeOffset.UtcNow;
/// <summary>
/// The application will user this to get the current date and time.
/// </summary>
public DateTimeOffset GetNow => DateTime;
}