예제 #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);
        }
예제 #2
0
 public Video(VideoTitle videoTitle, VideoDescription videoDescription)
 {
     VideoTitle       = videoTitle;
     VideoDescription = videoDescription;
 }