private Course(Guid id, CourseName courseName, CourseDescription courseDescription, Author author, List <Video> videos) : base(id) { CourseName = courseName; CourseDescription = courseDescription; Author = Guard.Argument(author, nameof(author)).NotNull(); _videos = new List <Video>(); Guard.Argument(videos, nameof(videos)).NotNull(); videos.ForEach(video => AddVideo(video)); }
public virtual void UpdateDescription(string description) { CourseDescription = new CourseDescription(description); }