diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-01 22:32:40 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-01 22:32:40 +0800 |
commit | 9aeca6f6adf1a20d85e1fdbc8bdc8dfb35be28c1 (patch) | |
tree | abbdb97d24c2e6d7c32433887643676637011720 /Timeline/Services/Clock.cs | |
parent | ee506e832e19e84cba2f9cf1c2b0172ca3e092b6 (diff) | |
download | timeline-9aeca6f6adf1a20d85e1fdbc8bdc8dfb35be28c1.tar.gz timeline-9aeca6f6adf1a20d85e1fdbc8bdc8dfb35be28c1.tar.bz2 timeline-9aeca6f6adf1a20d85e1fdbc8bdc8dfb35be28c1.zip |
Add token expire time.
Diffstat (limited to 'Timeline/Services/Clock.cs')
-rw-r--r-- | Timeline/Services/Clock.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Timeline/Services/Clock.cs b/Timeline/Services/Clock.cs new file mode 100644 index 00000000..98451ad9 --- /dev/null +++ b/Timeline/Services/Clock.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace Timeline.Services +{ + /// <summary> + /// Convenient for unit test. + /// </summary> + public interface IClock + { + /// <summary> + /// Get current time. + /// </summary> + /// <returns>Current time.</returns> + DateTime GetCurrentTime(); + } + + public class Clock : IClock + { + public Clock() + { + + } + + public DateTime GetCurrentTime() + { + return DateTime.Now; + } + } +} |