aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/PasswordGenerator.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-10-31 14:58:36 +0800
committer杨宇千 <crupest@outlook.com>2019-10-31 14:58:36 +0800
commitcf2055f956695bc0b9ecdb6d8023d0d199b98462 (patch)
treeba42530cf4f13621a7a3a7ff661e383117119883 /Timeline.Tests/PasswordGenerator.cs
parenta1109e9ac3f059e27089d981972f53bfe61e8f46 (diff)
downloadtimeline-cf2055f956695bc0b9ecdb6d8023d0d199b98462.tar.gz
timeline-cf2055f956695bc0b9ecdb6d8023d0d199b98462.tar.bz2
timeline-cf2055f956695bc0b9ecdb6d8023d0d199b98462.zip
Recreate database and migrations.
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"));
+ }
+ }
+}