Esempio n. 1
0
        public void AddPlaylistTest()
        {
            DBPlaylist dbPlaylist = new DBPlaylist();
            User       user       = new User(1, "Myron Antonissen", "*****@*****.**", "4761KL", DateTime.Now, Country.Germany, 624196793, new Subscription("", 0.0, ""));

            Assert.AreEqual(true, (dbPlaylist.AddPlaylist("TestPlaylist", user)));
        }
Esempio n. 2
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);
        }
Esempio n. 3
0
        public void GetPlaylistsFromUserTest()
        {
            DBPlaylist dbPlaylist = new DBPlaylist();

            Assert.Fail();
        }