diff options
author | crupest <crupest@outlook.com> | 2019-11-20 00:28:53 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-11-20 00:28:53 +0800 |
commit | ed8bae9cf7fd22300678d718cfee1913209f2cd0 (patch) | |
tree | 55eaf43bda897148b0fa8a65406e7289aed3832e /Timeline.Tests/Mock/Data/TestUsers.cs | |
parent | 0ff98dd9274485994b11d9d00f4b647a5f2d42ac (diff) | |
download | timeline-ed8bae9cf7fd22300678d718cfee1913209f2cd0.tar.gz timeline-ed8bae9cf7fd22300678d718cfee1913209f2cd0.tar.bz2 timeline-ed8bae9cf7fd22300678d718cfee1913209f2cd0.zip |
Clean and refactor tests.
Diffstat (limited to 'Timeline.Tests/Mock/Data/TestUsers.cs')
-rw-r--r-- | Timeline.Tests/Mock/Data/TestUsers.cs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/Timeline.Tests/Mock/Data/TestUsers.cs b/Timeline.Tests/Mock/Data/TestUsers.cs deleted file mode 100644 index 443d3cf9..00000000 --- a/Timeline.Tests/Mock/Data/TestUsers.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System.Collections.Generic;
-using Timeline.Models;
-
-namespace Timeline.Tests.Mock.Data
-{
- public class MockUser
- {
- public MockUser(string username, string password, bool administrator)
- {
- Info = new UserInfo(username, administrator);
- Password = password;
- }
-
- public UserInfo 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<UserInfo> UserInfoList { get; } = new List<UserInfo> { User.Info, Admin.Info };
- }
-}
|