예제 #1
0
        public void DeleteAnEditedArtist()
        {
            bool result = false;

            artistList = CDCatalogManager.GetArtists();

            foreach (Artist a in artistList)
            {
                if (a.ArtistName == "Fixed Artist")
                {
                    result = CDCatalogManager.DeleteArtist(a);
                }
            }

            Assert.IsTrue(result);
        }
예제 #2
0
        public void TearDown()
        {
            songList = CDCatalogManager.GetSongs();
            foreach (Song s in songList)
            {
                if (s.SongTitle == "Foxed Song" || s.SongTitle == "Misspelled Snog")
                {
                    CDCatalogManager.DeleteSong(s);
                }
            }

            albumList = CDCatalogManager.GetAlbums();
            foreach (Album a in albumList)
            {
                if (a.AlbumTitle == "Fixed Album" || a.AlbumTitle == "Misspelled Ablum")
                {
                    CDCatalogManager.DeleteAlbum(a);
                }
            }

            artistList = CDCatalogManager.GetArtists();
            foreach (Artist a in artistList)
            {
                if (a.ArtistName == "Fixed Artist" || a.ArtistName == "Misspelled Test Atrist")
                {
                    CDCatalogManager.DeleteArtist(a);
                }
            }

            genreList = CDCatalogManager.GetGenres();
            foreach (Genre g in genreList)
            {
                if (g.GenreName == "Fixed Genre" || g.GenreName == "Misspelled Gerne")
                {
                    CDCatalogManager.DeleteGenre(g);
                }
            }
        }