/// <summary>
        /// Gets the video by identifier.
        /// </summary>
        /// <param name="Id">The identifier.</param>
        /// <returns></returns>
        public Video GetVideoById(int Id)
        {
            VideoData           videoData = new VideoData();
            IEnumerable <Video> videos    = videoData.GetVideos();

            return(videos.FirstOrDefault(v => v.Id == Id));
        }
Esempio n. 2
0
        public void GetVideosReturnsAListOfVideos()
        {
            VideoData           videoData = new VideoData();
            IEnumerable <Video> videos    = videoData.GetVideos();

            Assert.IsNotNull(videos);
            Assert.AreEqual(videos.Count(), 6);
        }