diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-08 16:54:03 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-08 16:54:03 +0800 |
commit | ed85aa28b49789aa413a7e10637368c812411640 (patch) | |
tree | da11e395a3fd1340187fb785fc17e570171b942b /Timeline/Services/Clock.cs | |
parent | 57151c879376374425adb04fb68dad2cf7930df8 (diff) | |
parent | 29bd71cd93b03248254f341aff9252374abc74ec (diff) | |
download | timeline-ed85aa28b49789aa413a7e10637368c812411640.tar.gz timeline-ed85aa28b49789aa413a7e10637368c812411640.tar.bz2 timeline-ed85aa28b49789aa413a7e10637368c812411640.zip |
Merge branch 'master' into null-request-field
Diffstat (limited to 'Timeline/Services/Clock.cs')
-rw-r--r-- | Timeline/Services/Clock.cs | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/Timeline/Services/Clock.cs b/Timeline/Services/Clock.cs index 98451ad9..0499c0c6 100644 --- a/Timeline/Services/Clock.cs +++ b/Timeline/Services/Clock.cs @@ -1,32 +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; - } - } -} +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;
+ }
+ }
+}
|