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) }); }
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) }); }