Exemple #1
0
 public Topic(Guid aggregateId, long authorId, Guid channelId, string title, string slug,
              ContentTypes contentType, string content, SubjectStates state) : base(aggregateId)
 {
     this.AuthorId    = authorId;
     this.ChannelId   = channelId;
     this.Title       = title;
     this.Slug        = slug;
     this.ContentType = contentType;
     this.Content     = content;
     this.State       = state;
 }
Exemple #2
0
 public void Change(Guid channelId, string title, string slug, ContentTypes contentType, string content, SubjectStates state)
 {
     this.ChannelId   = channelId;
     this.Title       = title;
     this.Slug        = slug;
     this.ContentType = contentType;
     this.Content     = content;
     this.State       = state;
 }