Exemplo n.º 1
0
        public void GetPlaylistByIDTest()
        {
            DBPlaylist dbPlaylist = new DBPlaylist();
            Playlist   actual     = dbPlaylist.GetPlaylistByID(1);
            User       user       = new User(1, "Myron Antonissen", "*****@*****.**", "4761KL", DateTime.Now, Country.Germany, 624196793, new Subscription("", 0.0, ""));
            Playlist   expect     = new Playlist(1, "MyPlaylist", user);

            Assert.AreEqual(expect, actual);
        }
Exemplo n.º 2
0
        public ActionResult _Playlist(int PlaylistId = 0)
        {
            Playlist playlist = dbPlaylist.GetPlaylistByID(PlaylistId);

            return(View(playlist));
        }