diff options
Diffstat (limited to 'Timeline/Services')
-rw-r--r-- | Timeline/Services/Clock.cs | 64 | ||||
-rw-r--r-- | Timeline/Services/JwtService.cs | 2 | ||||
-rw-r--r-- | Timeline/Services/PasswordService.cs | 2 |
3 files changed, 34 insertions, 34 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;
+ }
+ }
+}
diff --git a/Timeline/Services/JwtService.cs b/Timeline/Services/JwtService.cs index 94afe745..350c5e80 100644 --- a/Timeline/Services/JwtService.cs +++ b/Timeline/Services/JwtService.cs @@ -1,4 +1,4 @@ -using Microsoft.Extensions.Options;
+using Microsoft.Extensions.Options;
using Microsoft.IdentityModel.Tokens;
using System;
using System.IdentityModel.Tokens.Jwt;
diff --git a/Timeline/Services/PasswordService.cs b/Timeline/Services/PasswordService.cs index 8c67d046..e09a1365 100644 --- a/Timeline/Services/PasswordService.cs +++ b/Timeline/Services/PasswordService.cs @@ -1,4 +1,4 @@ -using Microsoft.AspNetCore.Cryptography.KeyDerivation;
+using Microsoft.AspNetCore.Cryptography.KeyDerivation;
using System;
using System.Runtime.CompilerServices;
using System.Security.Cryptography;
|