示例#1
0
 public static Tenant GetFirst()
 {
     return(new Tenant
     {
         Id = FirstId,
         Name = FirstName,
         EntryKey = "first",
         RegionKey = Region,
         StorageLimit = 10000000,
         IsActive = true,
         HasProfile = true,
         ProfileId = VisibleData.SixthId,
         ProfileThumbUrl = VisibleData.GetSixth().ThumbUrl,
         AuthorId = UserData.FourthId,
         AuthorName = UserData.FourthName,
         DateCreated = DateHelper.FormatDayStart(DateTime.UtcNow),
         DateModified = DateHelper.FormatDayStart(DateTime.UtcNow)
     });
 }
示例#2
0
文件: UserData.cs 项目: rog1039/crux
 public static User GetSecond()
 {
     return(new User
     {
         Id = SecondId,
         ConfigId = UserConfigData.SecondId,
         Name = SecondName,
         Email = "*****@*****.**",
         Right = new UserRight {
             CanAdmin = true, CanAuth = true, CanSuperuser = false
         },
         EncryptedPwd = EncryptHelper.Encrypt("organiser"),
         ProfileId = VisibleData.SecondId,
         ProfileThumbUrl = VisibleData.GetSecond().ThumbUrl,
         TenantId = TenantData.FirstId,
         TenantName = TenantData.FirstName,
         AuthorId = UserData.FourthId,
         AuthorName = UserData.FourthName,
         RegionKey = TenantData.Region,
         DateCreated = DateHelper.FormatDayStart(DateTime.UtcNow),
         DateModified = DateHelper.FormatDayStart(DateTime.UtcNow)
     });
 }