示例#1
0
文件: UserData.cs 项目: rog1039/crux
 public static User GetFourth()
 {
     return(new User
     {
         Id = FourthId,
         ConfigId = UserConfigData.FourthId,
         Name = FourthName,
         Email = "*****@*****.**",
         Right = new UserRight {
             CanAdmin = true, CanAuth = true, CanSuperuser = true
         },
         EncryptedPwd = EncryptHelper.Encrypt("super"),
         HasProfile = true,
         ProfileId = VisibleData.ThirdId,
         ProfileThumbUrl = VisibleData.GetThird().ThumbUrl,
         TenantId = TenantData.FirstId,
         TenantName = TenantData.FirstName,
         AuthorId = UserData.ThirdId,
         AuthorName = UserData.ThirdName,
         RegionKey = TenantData.Region,
         DateCreated = DateHelper.FormatDayStart(DateTime.UtcNow),
         DateModified = DateHelper.FormatDayStart(DateTime.UtcNow)
     });
 }