public void TestRetrieveSpecific()
        {
            Video video = VideoDBConnector.GetVideo(dataSource, 1);

            Assert.NotNull(video);
            Assert.Equal("CEWIT", video.Title);
            Assert.Equal("https://www.youtube.com/embed/i9TRte-Nrz0", video.Url);
        }
예제 #2
0
 public IActionResult Edit(int id)
 {
     return(View(VideoDBConnector.GetVideo(Constants.DATA_SOURCE, id)));
 }