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(); }
public FakeTopic(int topicId) { TopicId = topicId; CreatorId = RandomHelper.Next(10000); TopicTitle = FakeContent.MakeTitle(); ViewCount = RandomHelper.Next(32423); for (int i = 0; i < RandomHelper.Next(2, 10); i++) { ReplyList.Add(new FakeTopicReply(topicId, RandomHelper.Next(10000))); } CreateTime = RandomHelper.Time(); LastUpdateTime = RandomHelper.Time(); Owner = new FakeCommunityInfo(); Content = FakeContent.MakeContent(); }