using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; 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.Now; } } }