コード例 #1
0
 public ForumSubjectChanged(Tenant tenantId, ForumId forumId, string subject, string exclusiveOwner)
 {
     this.TenantId = tenantId;
     this.ForumId = forumId;
     this.Subject = subject;
     this.ExclusiveOwner = exclusiveOwner;
 }
コード例 #2
0
 public DiscussionClosed(Tenant tenantId, ForumId forumId, DiscussionId discussionId, string exclusiveOwner)
 {
     this.TenantId = tenantId;
     this.ForumId = forumId;
     this.DiscussionId = discussionId;
     this.ExclusiveOwner = exclusiveOwner;
 }
コード例 #3
0
 public ForumModeratorChanged(Tenant tenantId, ForumId forumId, Moderator moderator, string exclusiveOwner)
 {
     TenantId       = tenantId;
     ForumId        = forumId;
     Moderator      = moderator;
     ExclusiveOwner = exclusiveOwner;
 }
コード例 #4
0
 public ForumSubjectChanged(Tenant tenantId, ForumId forumId, string subject, string exclusiveOwner)
 {
     this.TenantId       = tenantId;
     this.ForumId        = forumId;
     this.Subject        = subject;
     this.ExclusiveOwner = exclusiveOwner;
 }
コード例 #5
0
 public ForumModeratorChanged(Tenant tenantId, ForumId forumId, Moderator moderator,string exclusiveOwner)
 {
     this.TenantId = tenantId;
     this.ForumId = forumId;
     this.Moderator = moderator;
     this.ExclusiveOwner = exclusiveOwner;
 }
コード例 #6
0
 public ForumDescriptionChanged(Tenant tenantId, ForumId forumId, string description, string exclusiveOwner)
 {
     TenantId       = tenantId;
     ForumId        = forumId;
     Description    = description;
     ExclusiveOwner = exclusiveOwner;
 }
コード例 #7
0
 public ForumDescriptionChanged(Tenant tenantId, ForumId forumId, string description, string exclusiveOwner)
 {
     this.TenantId       = tenantId;
     this.ForumId        = forumId;
     this.Description    = description;
     this.ExclusiveOwner = exclusiveOwner;
 }
コード例 #8
0
 public ForumModeratorChanged(Tenant tenantId, ForumId forumId, Moderator moderator, string exclusiveOwner)
 {
     this.TenantId       = tenantId;
     this.ForumId        = forumId;
     this.Moderator      = moderator;
     this.ExclusiveOwner = exclusiveOwner;
 }
コード例 #9
0
 public ForumDescriptionChanged(Tenant tenantId, ForumId forumId, string description, string exclusiveOwner)
 {
     this.TenantId = tenantId;
     this.ForumId = forumId;
     this.Description = description;
     this.ExclusiveOwner = exclusiveOwner;
 }
コード例 #10
0
 public ForumSubjectChanged(Tenant tenantId, ForumId forumId, string subject, string exclusiveOwner)
 {
     TenantId       = tenantId;
     ForumId        = forumId;
     Subject        = subject;
     ExclusiveOwner = exclusiveOwner;
 }
コード例 #11
0
 public DiscussionClosed(Tenant tenantId, ForumId forumId, DiscussionId discussionId, string exclusiveOwner)
 {
     this.TenantId       = tenantId;
     this.ForumId        = forumId;
     this.DiscussionId   = discussionId;
     this.ExclusiveOwner = exclusiveOwner;
 }
コード例 #12
0
 public DiscussionClosed(Tenant tenantId, ForumId forumId, DiscussionId discussionId, string exclusiveOwner)
 {
     TenantId       = tenantId;
     ForumId        = forumId;
     DiscussionId   = discussionId;
     ExclusiveOwner = exclusiveOwner;
 }
コード例 #13
0
 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;
 }
コード例 #14
0
 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;
 }
コード例 #15
0
 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;
 }
コード例 #16
0
 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;
 }
コード例 #17
0
 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;
 }
コード例 #18
0
 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;
 }
コード例 #19
0
 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;
 }
コード例 #20
0
ファイル: Forum.cs プロジェクト: thangchung/IDDD_Samples_NET
 void When(ForumStarted e)
 {
     this.tenantId       = e.TenantId;
     this.forumId        = e.ForumId;
     this.creator        = e.Creator;
     this.moderator      = e.Moderator;
     this.subject        = e.Subject;
     this.description    = e.Description;
     this.exclusiveOwner = e.ExclusiveOwner;
 }
コード例 #21
0
ファイル: ForumStarted.cs プロジェクト: asr0/IDDD_Samples_NET
 public ForumStarted(Tenant tenantId, ForumId forumId, Creator creator, Moderator moderator, string subject, string description, string exclusiveOwner)
 {
     this.TenantId = tenantId;
     this.ForumId = forumId;
     this.Creator = creator;
     this.Moderator = moderator;
     this.Subject = subject;
     this.Description = description;
     this.ExclusiveOwner = exclusiveOwner;
 }
コード例 #22
0
 public ForumStarted(Tenant tenantId, ForumId forumId, Creator creator, Moderator moderator, string subject, string description, string exclusiveOwner)
 {
     TenantId       = tenantId;
     ForumId        = forumId;
     Creator        = creator;
     Moderator      = moderator;
     Subject        = subject;
     Description    = description;
     ExclusiveOwner = exclusiveOwner;
 }
コード例 #23
0
 public ForumStarted(Tenant tenantId, ForumId forumId, Creator creator, Moderator moderator, string subject, string description, string exclusiveOwner)
 {
     this.TenantId       = tenantId;
     this.ForumId        = forumId;
     this.Creator        = creator;
     this.Moderator      = moderator;
     this.Subject        = subject;
     this.Description    = description;
     this.ExclusiveOwner = exclusiveOwner;
 }
コード例 #24
0
        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));
        }
コード例 #25
0
        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));
        }
コード例 #26
0
 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;
 }
コード例 #27
0
ファイル: Post.cs プロジェクト: asr0/IDDD_Samples_NET
        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));
        }
コード例 #28
0
ファイル: Post.cs プロジェクト: asr0/IDDD_Samples_NET
 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;
 }
コード例 #29
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;
 }
コード例 #30
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;
 }
コード例 #31
0
        public Forum(Tenant tenantId, ForumId forumId, Creator creator, Moderator moderator, string subject, string description, string exclusiveOwner)
        {
            AssertionConcern.AssertArgumentNotNull(tenantId, "The tenant must be provided.");
            AssertionConcern.AssertArgumentNotNull(forumId, "The forum id must be provided.");
            AssertionConcern.AssertArgumentNotNull(creator, "The creator must be provided.");
            AssertionConcern.AssertArgumentNotNull(moderator, "The moderator must be provided.");
            AssertionConcern.AssertArgumentNotEmpty(subject, "The subject must be provided.");
            AssertionConcern.AssertArgumentNotEmpty(description, "The description must be provided.");

            Apply(new ForumStarted(tenantId, forumId, creator, moderator, subject, description, exclusiveOwner));
        }
コード例 #32
0
ファイル: Post.cs プロジェクト: germankuber/IDDD_Samples_NET
 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;
 }
コード例 #33
0
ファイル: Post.cs プロジェクト: germankuber/IDDD_Samples_NET
        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));
        }
コード例 #34
0
ファイル: Post.cs プロジェクト: kfzteile24/ddd-samples-net
 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;
 }
コード例 #35
0
ファイル: Forum.cs プロジェクト: nutshellit/IDDD_Samples_NET
        public Forum(Tenant tenantId, ForumId forumId, Creator creator, Moderator moderator, string subject, string description, string exclusiveOwner)
        {
            AssertionConcern.AssertArgumentNotNull(tenantId, "The tenant must be provided.");
            AssertionConcern.AssertArgumentNotNull(forumId, "The forum id must be provided.");
            AssertionConcern.AssertArgumentNotNull(creator, "The creator must be provided.");
            AssertionConcern.AssertArgumentNotNull(moderator, "The moderator must be provided.");
            AssertionConcern.AssertArgumentNotEmpty(subject, "The subject must be provided.");
            AssertionConcern.AssertArgumentNotEmpty(description, "The description must be provided.");

            Apply(new ForumStarted(tenantId, forumId, creator, moderator, subject, description, exclusiveOwner));
        }
コード例 #36
0
 public ForumReopened(Tenant tenantId, ForumId forumId, string exclusiveOwner)
 {
     this.TenantId = tenantId;
     this.ForumId = forumId;
     this.ExclusiveOwner = exclusiveOwner;
 }
コード例 #37
0
ファイル: Forum.cs プロジェクト: nutshellit/IDDD_Samples_NET
 void When(ForumStarted e)
 {
     this.tenantId = e.TenantId;
     this.forumId = e.ForumId;
     this.creator = e.Creator;
     this.moderator = e.Moderator;
     this.subject = e.Subject;
     this.description = e.Description;
     this.exclusiveOwner = e.ExclusiveOwner;
 }
コード例 #38
0
 public ForumReopened(Tenant tenantId, ForumId forumId, string exclusiveOwner)
 {
     TenantId       = tenantId;
     ForumId        = forumId;
     ExclusiveOwner = exclusiveOwner;
 }
コード例 #39
0
 public ForumClosed(Tenant tenantId, ForumId forumId, string exclusiveOwner)
 {
     this.TenantId       = tenantId;
     this.ForumId        = forumId;
     this.ExclusiveOwner = exclusiveOwner;
 }
コード例 #40
0
 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;
 }