/// <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)); }
public void GetVideosReturnsAListOfVideos() { VideoData videoData = new VideoData(); IEnumerable <Video> videos = videoData.GetVideos(); Assert.IsNotNull(videos); Assert.AreEqual(videos.Count(), 6); }