aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/PasswordGenerator.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-10-31 15:02:03 +0800
committerGitHub <noreply@github.com>2019-10-31 15:02:03 +0800
commit2de7fa95bb5ad0a10f74fb390bac464a250dee42 (patch)
treeba42530cf4f13621a7a3a7ff661e383117119883 /Timeline.Tests/PasswordGenerator.cs
parentf08f53d6fcd9baf9dd3b95209f7c7448ae8168d4 (diff)
parentcf2055f956695bc0b9ecdb6d8023d0d199b98462 (diff)
downloadtimeline-2de7fa95bb5ad0a10f74fb390bac464a250dee42.tar.gz
timeline-2de7fa95bb5ad0a10f74fb390bac464a250dee42.tar.bz2
timeline-2de7fa95bb5ad0a10f74fb390bac464a250dee42.zip
Merge pull request #53 from crupest/nickname
Add nickname support.
Diffstat (limited to 'Timeline.Tests/PasswordGenerator.cs')
-rw-r--r--Timeline.Tests/PasswordGenerator.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Timeline.Tests/PasswordGenerator.cs b/Timeline.Tests/PasswordGenerator.cs
new file mode 100644
index 00000000..6c07836b
--- /dev/null
+++ b/Timeline.Tests/PasswordGenerator.cs
@@ -0,0 +1,24 @@
+using System;
+using Timeline.Services;
+using Xunit;
+using Xunit.Abstractions;
+
+namespace Timeline.Tests
+{
+ public class PasswordGenerator
+ {
+ private readonly ITestOutputHelper _output;
+
+ public PasswordGenerator(ITestOutputHelper output)
+ {
+ _output = output;
+ }
+
+ [Fact]
+ public void Generate()
+ {
+ var service = new PasswordService();
+ _output.WriteLine(service.HashPassword("crupest"));
+ }
+ }
+}