Ejemplo n.º 1
0
        public static Topic NewRootTopic(
            long creatorId,
            TopicRules rules,
            string name,
            string description,
            IDateTimeProvider dateTimeProvider)
        {
            var now = dateTimeProvider.UtcNow;

            return(new Topic(0L, creatorId, null, rules, name, description, now, now, 0, null));
        }
Ejemplo n.º 2
0
 public Topic(
     long id,
     long?creatorId,
     long?parentTopicId,
     TopicRules rules,
     string name,
     string description,
     DateTimeOffset createdDate,
     DateTimeOffset updatedDate,
     int viewCount,
     long?lastReplyUserId
     )
 {
     Id              = id;
     CreatorId       = creatorId;
     Name            = name;
     Description     = description;
     ParentTopicId   = parentTopicId;
     Rules           = rules;
     CreatedDate     = createdDate;
     UpdatedDate     = updatedDate;
     ViewCount       = viewCount;
     LastReplyUserId = lastReplyUserId;
 }