public PostedContentAltered(Tenant tenantId, ForumId forumId, DiscussionId discussionId, PostId postId, string subject, string bodyText)
 {
     TenantId     = tenantId;
     ForumId      = forumId;
     DiscussionId = discussionId;
     PostId       = postId;
     Subject      = subject;
     BodyText     = bodyText;
 }
 public PostedContentAltered(Tenant tenantId, ForumId forumId, DiscussionId discussionId, PostId postId, string subject, string bodyText)
 {
     this.TenantId = tenantId;
     this.ForumId = forumId;
     this.DiscussionId = discussionId;
     this.PostId = postId;
     this.Subject = subject;
     this.BodyText = bodyText;
 }
Example #3
0
 private void When(PostedToDiscussion e)
 {
     _tenantId      = e.TenantId;
     _forumId       = e.ForumId;
     _discussionId  = e.DiscussionId;
     _postId        = e.PostId;
     _author        = e.Author;
     _subject       = e.Subject;
     _bodyText      = e.BodyText;
     _replyToPostId = e.ReplyToPostId;
 }
Example #4
0
        public Post(Tenant tenantId, ForumId forumId, DiscussionId discussionId, PostId postId, Author author, string subject, string bodyText, PostId replyToPostId = null)
        {
            AssertionConcern.AssertArgumentNotNull(tenantId, "The tenant must be provided.");
            AssertionConcern.AssertArgumentNotNull(forumId, "The forum id must be provided.");
            AssertionConcern.AssertArgumentNotNull(discussionId, "The discussion id must be provided.");
            AssertionConcern.AssertArgumentNotNull(postId, "The post id must be provided.");
            AssertionConcern.AssertArgumentNotNull(author, "The author must be provided.");
            AssertPostContent(subject, bodyText);

            Apply(new PostedToDiscussion(tenantId, forumId, discussionId, postId, author, subject, bodyText, replyToPostId));
        }
 public PostedToDiscussion(Tenant tenantId, ForumId forumId, DiscussionId discussionId, PostId postId, Author author, string subject, string bodyText, PostId replyToPostId)
 {
     this.TenantId = tenantId;
     this.ForumId = forumId;
     this.DiscussionId = discussionId;
     this.PostId = postId;
     this.Author = author;
     this.Subject = subject;
     this.BodyText = bodyText;
     this.ReplyToPostId = replyToPostId;
 }
Example #6
0
 void When(PostedToDiscussion e)
 {
     this.tenantId = e.TenantId;
     this.forumId = e.ForumId;
     this.discussionId = e.DiscussionId;
     this.postId = e.PostId;
     this.author = e.Author;
     this.subject = e.Subject;
     this.bodyText = e.BodyText;
     this.replyToPostId = e.ReplyToPostId;
 }
Example #7
0
        public Post(Tenant tenantId, ForumId forumId, DiscussionId discussionId, PostId postId, Author author, string subject, string bodyText, PostId replyToPostId = null)
        {
            AssertionConcern.AssertArgumentNotNull(tenantId, "The tenant must be provided.");
            AssertionConcern.AssertArgumentNotNull(forumId, "The forum id must be provided.");
            AssertionConcern.AssertArgumentNotNull(discussionId, "The discussion id must be provided.");
            AssertionConcern.AssertArgumentNotNull(postId, "The post id must be provided.");
            AssertionConcern.AssertArgumentNotNull(author, "The author must be provided.");
            AssertPostContent(subject, bodyText);

            Apply(new PostedToDiscussion(tenantId, forumId, discussionId, postId, author, subject, bodyText, replyToPostId));
        }
 public PostedToDiscussion(Tenant tenantId, ForumId forumId, DiscussionId discussionId, PostId postId, Author author, string subject, string bodyText, PostId replyToPostId)
 {
     TenantId      = tenantId;
     ForumId       = forumId;
     DiscussionId  = discussionId;
     PostId        = postId;
     Author        = author;
     Subject       = subject;
     BodyText      = bodyText;
     ReplyToPostId = replyToPostId;
 }
Example #9
0
 void When(PostedToDiscussion e)
 {
     this.tenantId      = e.TenantId;
     this.forumId       = e.ForumId;
     this.discussionId  = e.DiscussionId;
     this.postId        = e.PostId;
     this.author        = e.Author;
     this.subject       = e.Subject;
     this.bodyText      = e.BodyText;
     this.replyToPostId = e.ReplyToPostId;
 }
Example #10
0
 public Post Post(ForumIdentityService forumIdService, Author author, string subject, string bodyText, PostId replyToPostId = null)
 {
     return new Post(
         this.tenantId,
         this.forumId,
         this.discussionId,
         forumIdService.GetNexPostId(),
         author,
         subject,
         bodyText,
         replyToPostId);
 }
 public PostedContentAltered(Tenant tenantId, ForumId forumId, DiscussionId discussionId, PostId postId, string subject, string bodyText)
 {
     this.TenantId     = tenantId;
     this.ForumId      = forumId;
     this.DiscussionId = discussionId;
     this.PostId       = postId;
     this.Subject      = subject;
     this.BodyText     = bodyText;
 }
Example #12
0
 public Post Post(ForumIdentityService forumIdService, Author author, string subject, string bodyText, PostId replyToPostId = null)
 {
     return(new Post(
                this.tenantId,
                this.forumId,
                this.discussionId,
                forumIdService.GetNexPostId(),
                author,
                subject,
                bodyText,
                replyToPostId));
 }
Example #13
0
 public PostedToDiscussion(Tenant tenantId, ForumId forumId, DiscussionId discussionId, PostId postId, Author author, string subject, string bodyText, PostId replyToPostId)
 {
     this.TenantId      = tenantId;
     this.ForumId       = forumId;
     this.DiscussionId  = discussionId;
     this.PostId        = postId;
     this.Author        = author;
     this.Subject       = subject;
     this.BodyText      = bodyText;
     this.ReplyToPostId = replyToPostId;
 }