public DiscussionClosed(Tenant tenantId, ForumId forumId, DiscussionId discussionId, string exclusiveOwner) { this.TenantId = tenantId; this.ForumId = forumId; this.DiscussionId = discussionId; this.ExclusiveOwner = exclusiveOwner; }
public DiscussionClosed(Tenant tenantId, ForumId forumId, DiscussionId discussionId, string exclusiveOwner) { TenantId = tenantId; ForumId = forumId; DiscussionId = discussionId; ExclusiveOwner = exclusiveOwner; }
public DiscussionStarted(Tenant tenantId, ForumId forumId, DiscussionId discussionId, Author author, string subject, string exclusiveOwner) { TenantId = tenantId; ForumId = forumId; DiscussionId = discussionId; Author = author; Subject = subject; ExclusiveOwner = exclusiveOwner; }
void When(DiscussionStarted e) { this.tenantId = e.TenantId; this.forumId = e.ForumId; this.discussionId = e.DiscussionId; this.author = e.Author; this.subject = e.Subject; this.exclusiveOwner = e.ExclusiveOwner; }
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; }
public DiscussionStarted(Tenant tenantId, ForumId forumId, DiscussionId discussionId, Author author, string subject, string exclusiveOwner) { this.TenantId = tenantId; this.ForumId = forumId; this.DiscussionId = discussionId; this.Author = author; this.Subject = subject; this.ExclusiveOwner = exclusiveOwner; }
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 Discussion(Tenant tenantId, ForumId forumId, DiscussionId discussionId, Author author, string subject, string exclusiveOwner = 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(author, "The author must be provided."); AssertionConcern.AssertArgumentNotEmpty(subject, "The subject must be provided."); Apply(new DiscussionStarted(tenantId, forumId, discussionId, author, subject, exclusiveOwner)); }
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; }
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; }
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; }
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)); }
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; }