using System; namespace Timeline.Services { /// /// Convenient for unit test. /// public interface IClock { /// /// Get current time. /// /// Current time. DateTime GetCurrentTime(); } public class Clock : IClock { public Clock() { } public DateTime GetCurrentTime() { return DateTime.UtcNow; } } }