Пример #1
0
        public void AddSongToPlaylist()
        {
            playListController.AddPlayList("geschwindigkeitsbegrenzung", 1);
            PlayList playList = playListController.FindPlayListsByName("geschwindigkeitsbegrenzung")[0];

            songController.AddSong("YWo4qBnSwjM", 1);
            Song song = songController.GetSongByUrl("YWo4qBnSwjM");

            playListController.AddSongToPlayList("YWo4qBnSwjM", playList.ActivityId.ToString(), 1);

            Assert.AreEqual(song.Url, playListController.GetSongsFromPlayList(playList.ActivityId.ToString())[0].Url);
            dbActivity.DeleteActivity(1, playList.ActivityId, null, new DbConnection().GetConnection());
            dbActivity.DeleteActivity(1, song.ActivityId, null, new DbConnection().GetConnection());
        }