Example #1
0
        public static Video Publish(VideoTitle videoTitle, VideoDescription videoDescription)
        {
            Video video = new Video(videoTitle, videoDescription);

            video.Record(new VideoPublished(videoTitle.Value, videoDescription.Value));

            return(video);
        }
Example #2
0
 public Video(VideoTitle videoTitle, VideoDescription videoDescription)
 {
     VideoTitle       = videoTitle;
     VideoDescription = videoDescription;
 }