diff --git a/Covid19Radar/Covid19Radar/Common/DateTimeUtility.cs b/Covid19Radar/Covid19Radar/Common/DateTimeUtility.cs new file mode 100644 index 000000000..2819da94e --- /dev/null +++ b/Covid19Radar/Covid19Radar/Common/DateTimeUtility.cs @@ -0,0 +1,18 @@ +using System; +namespace Covid19Radar.Common +{ + public interface IDateTimeUtility + { + DateTime UtcNow { get; } + } + public class DateTimeUtility : IDateTimeUtility + { + public static IDateTimeUtility Instance = new DateTimeUtility(); + + public DateTimeUtility() + { + } + + public DateTime UtcNow => DateTime.UtcNow; + } +}