public フォーラム開始時(テナント tenantId, フォーラムId forumId, クリエイタ creator, モデレータ 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; }
public フォーラム(テナント tenantId, フォーラムId forumId, クリエイタ creator, モデレータ 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 フォーラム開始時(tenantId, forumId, creator, moderator, subject, description, exclusiveOwner)); }
void When(フォーラム開始時 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; }