Validate movechoice target
This commit is contained in:
@@ -9,10 +9,10 @@ public static class StaticHelpers
|
||||
/// A function to get the current date and time. This can be replaced in cases where the date and time
|
||||
/// may not be the same as the system time.
|
||||
/// </summary>
|
||||
public static Func<DateTime> DateTimeProvider { get; set; } = () => DateTime.Now;
|
||||
public static Func<DateTimeOffset> DateTimeProvider { get; set; } = () => DateTimeOffset.Now;
|
||||
|
||||
/// <summary>
|
||||
/// Get the current date and time.
|
||||
/// </summary>
|
||||
public static DateTime GetCurrentDateTime() => DateTimeProvider();
|
||||
public static DateTimeOffset GetCurrentDateTime() => DateTimeProvider();
|
||||
}
|
||||
Reference in New Issue
Block a user