diff options
author | crupest <crupest@outlook.com> | 2020-01-30 20:26:52 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-01-30 20:26:52 +0800 |
commit | 79ab2b304d93b1029515bd3f954db4e5a73f4168 (patch) | |
tree | 538ceea06640f501d2a950cac813c10561036e4d /Timeline.Tests/Helpers/MockUser.cs | |
parent | dd0097af5c4ccbe25a1faca2286d729c93fd4116 (diff) | |
download | timeline-79ab2b304d93b1029515bd3f954db4e5a73f4168.tar.gz timeline-79ab2b304d93b1029515bd3f954db4e5a73f4168.tar.bz2 timeline-79ab2b304d93b1029515bd3f954db4e5a73f4168.zip |
...
Diffstat (limited to 'Timeline.Tests/Helpers/MockUser.cs')
-rw-r--r-- | Timeline.Tests/Helpers/MockUser.cs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Timeline.Tests/Helpers/MockUser.cs b/Timeline.Tests/Helpers/MockUser.cs deleted file mode 100644 index 49576842..00000000 --- a/Timeline.Tests/Helpers/MockUser.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System.Collections.Generic; -using Timeline.Models.Http;
-
-namespace Timeline.Tests.Helpers -{ - public class MockUser - { - public MockUser(string username, string password, bool administrator) - { - Info = new User { Username = username, Administrator = administrator }; - Password = password; - } - - public User Info { get; set; } - public string Username => Info.Username; - public string Password { get; set; } - public bool Administrator => Info.Administrator; - - public static MockUser User { get; } = new MockUser("user", "userpassword", false); - public static MockUser Admin { get; } = new MockUser("admin", "adminpassword", true); - - public static IReadOnlyList<User> UserInfoList { get; } = new List<User> { User.Info, Admin.Info }; - } -} |