public FakeCommunityMember()
 {
     RelatedId  = RandomHelper.Next(10000);
     MemberName = FakeName.MakeFakeUserName();
     Image      = FakeImage.MakeFakeImage();
     JoinTime   = RandomHelper.Time();
 }
Beispiel #2
0
 public FakeTopicReply(int topicId, int replyId)
 {
     ReplyId          = replyId;
     TopicId          = topicId;
     ReplyMemberId    = RandomHelper.Next(10000);
     ReplyMemberName  = FakeName.MakeFakeUserName();
     ReplyMemberImage = FakeImage.MakeFakeImage();
     ReplyTime        = RandomHelper.Time();
     Content          = FakeContent.MakeContent();
 }
Beispiel #3
0
 public FakeUserInfo(int id)
 {
     Id            = id;
     JobNumber     = RandomHelper.Next().ToString();
     Name          = FakeName.MakeFakeUserName();
     EntryTime     = RandomHelper.Bool() ? DateTime.Now.Subtract(TimeSpan.FromDays(RandomHelper.Next(2000))) : DateTime.Now.Subtract(TimeSpan.FromHours(RandomHelper.Next(1000)));
     Rank          = (int)DateTime.Now.Subtract(EntryTime).TotalDays * 2 + RandomHelper.Next(1000);
     Sex           = RandomHelper.Bool() ? "男" : "女";
     LastLoginTime = DateTime.Now;
     NickName      = FakeName.MakeFakeUserName();
     GroupName     = FakeName.MakeFakeGroupName();
     for (int i = 0; i < RandomHelper.Next(2, 6); i++)
     {
         Interesting.Add(FakeName.MakeFakeTag());
     }
     Signature = "yooooooooooo";
     Image     = FakeImage.MakeFakeImage();
 }