Exemple #1
0
 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));
 }
Exemple #2
0
 public virtual void UpdateDescription(string description)
 {
     CourseDescription = new CourseDescription(description);
 }