aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/Helpers/TestDatabase.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-21 01:11:17 +0800
committercrupest <crupest@outlook.com>2020-01-21 01:11:17 +0800
commit4aadb05cd5718c7d16bf432c96e23ae4e7db4783 (patch)
treea45506852659b9d8e2bfe0b9e58a496060f7cd9b /Timeline.Tests/Helpers/TestDatabase.cs
parente6069a6980ec6d2505e19026d4c84a9588f153dc (diff)
downloadtimeline-4aadb05cd5718c7d16bf432c96e23ae4e7db4783.tar.gz
timeline-4aadb05cd5718c7d16bf432c96e23ae4e7db4783.tar.bz2
timeline-4aadb05cd5718c7d16bf432c96e23ae4e7db4783.zip
...
Diffstat (limited to 'Timeline.Tests/Helpers/TestDatabase.cs')
-rw-r--r--Timeline.Tests/Helpers/TestDatabase.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Timeline.Tests/Helpers/TestDatabase.cs b/Timeline.Tests/Helpers/TestDatabase.cs
index 9560f353..3163279a 100644
--- a/Timeline.Tests/Helpers/TestDatabase.cs
+++ b/Timeline.Tests/Helpers/TestDatabase.cs
@@ -14,9 +14,9 @@ namespace Timeline.Tests.Helpers
// currently password service is thread safe, so we share a static one.
private static PasswordService PasswordService { get; } = new PasswordService();
- private static User CreateEntityFromMock(MockUser user)
+ private static UserEntity CreateEntityFromMock(MockUser user)
{
- return new User
+ return new UserEntity
{
Name = user.Username,
EncryptedPassword = PasswordService.HashPassword(user.Password),
@@ -25,7 +25,7 @@ namespace Timeline.Tests.Helpers
};
}
- private static IEnumerable<User> CreateDefaultMockEntities()
+ private static IEnumerable<UserEntity> CreateDefaultMockEntities()
{
// emmmmmmm. Never reuse the user instances because EF Core uses them, which will cause strange things.
yield return CreateEntityFromMock(MockUser.User);