public AddSongToPlaylist(IPlaylistManager manager)
        {
            InitializeComponent();

            foreach (Playlist playlist in manager.GetAllPlaylists())
            {
                ListBox.Items.Add(playlist.Name);
            }
        }
        private void ShowPlaylists(object sender, RoutedEventArgs e)
        {
            List.Items.Clear();
            DetailListing.Items.Clear();

            MenuShowPlaylists.IsChecked   = true;
            MenuShowLibraryList.IsChecked = false;

            foreach (Playlist playlist in _playlistManager.GetAllPlaylists())
            {
                List.Items.Add(playlist);
            }
        }
Beispiel #3
0
            public void CreatePlaylist()
            {
                _playlistManager.CreatePlaylist(playlist2);

                Assert.Contains(playlist2, _playlistManager.GetAllPlaylists().ToList());
            }