diff options
author | crupest <crupest@outlook.com> | 2020-01-23 20:51:02 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-01-23 20:51:02 +0800 |
commit | c72996ff9854aededc4ecfab92ef5d42167edd86 (patch) | |
tree | 1e722a0618cdb0fe3f784a0c4100727a5b2b3ece /Timeline.Tests/Helpers/MockUser.cs | |
parent | 4aadb05cd5718c7d16bf432c96e23ae4e7db4783 (diff) | |
download | timeline-c72996ff9854aededc4ecfab92ef5d42167edd86.tar.gz timeline-c72996ff9854aededc4ecfab92ef5d42167edd86.tar.bz2 timeline-c72996ff9854aededc4ecfab92ef5d42167edd86.zip |
...
Diffstat (limited to 'Timeline.Tests/Helpers/MockUser.cs')
-rw-r--r-- | Timeline.Tests/Helpers/MockUser.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Timeline.Tests/Helpers/MockUser.cs b/Timeline.Tests/Helpers/MockUser.cs index 8d738525..49576842 100644 --- a/Timeline.Tests/Helpers/MockUser.cs +++ b/Timeline.Tests/Helpers/MockUser.cs @@ -1,17 +1,17 @@ using System.Collections.Generic; -using Timeline.Models; - +using Timeline.Models.Http;
+
namespace Timeline.Tests.Helpers { public class MockUser { public MockUser(string username, string password, bool administrator) { - Info = new UserInfo(username, administrator); + Info = new User { Username = username, Administrator = administrator }; Password = password; } - public UserInfo Info { get; set; } + public User Info { get; set; } public string Username => Info.Username; public string Password { get; set; } public bool Administrator => Info.Administrator; @@ -19,6 +19,6 @@ namespace Timeline.Tests.Helpers public static MockUser User { get; } = new MockUser("user", "userpassword", false); public static MockUser Admin { get; } = new MockUser("admin", "adminpassword", true); - public static IReadOnlyList<UserInfo> UserInfoList { get; } = new List<UserInfo> { User.Info, Admin.Info }; + public static IReadOnlyList<User> UserInfoList { get; } = new List<User> { User.Info, Admin.Info }; } } |