public void DeleteASong() { bool result = false; songList = CDCatalogManager.GetSongs(); foreach (Song s in songList) { if (s.SongTitle == testSong.SongTitle) { result = CDCatalogManager.DeleteSong(s); } } Assert.IsTrue(result); }
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); } } }