public ディスカッション開始時(テナント tenantId, フォーラムId forumId, ディスカッションId discussionId, 著者 author, string subject, string exclusiveOwner)
 {
     this.TenantId = tenantId;
     this.ForumId = forumId;
     this.DiscussionId = discussionId;
     this.Author = author;
     this.Subject = subject;
     this.ExclusiveOwner = exclusiveOwner;
 }
        public ディスカッション(テナント tenantId, フォーラムId forumId, ディスカッションId discussionId, 著者 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 ディスカッション開始時(tenantId, forumId, discussionId, author, subject, exclusiveOwner));
        }
 public ディスカッションにポスト時(テナント tenantId, フォーラムId forumId, ディスカッションId discussionId, ポストId postId, 著者 author, string subject, string bodyText, ポストId 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;
 }
 public ポスト Post(フォーラム識別サービス forumIdService, 著者 author, string subject, string bodyText, ポストId replyToPostId = null)
 {
     return new ポスト(
         this.tenantId,
         this.forumId,
         this.discussionId,
         forumIdService.GetNexPostId(),
         author,
         subject,
         bodyText,
         replyToPostId);
 }
예제 #5
0
 public ディスカッション StartDiscussionFor(フォーラム識別サービス forumIdService, 著者 author, string subject, string exclusiveOwner = null)
 {
     AssertOpen();
     return new ディスカッション(
         this.tenantId,
         this.forumId,
         forumIdService.GetNextDiscussionId(),
         author,
         subject,
         exclusiveOwner);
 }
 void When(ディスカッション開始時 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;
 }