Exemple #1
0
 public void RandomFillTest()
 {
     try
     {
         MusicDao musicDao = new MusicDao();
         musicDao.Initialize();
         musicDao.RandomFill();
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
         Console.WriteLine(ex.StackTrace);
         throw;
     }
 }
Exemple #2
0
 public void PickRandomSong()
 {
     try
     {
         MusicDao musicDao = new MusicDao();
         musicDao.Initialize();
         SONG song = musicDao.PickRandomSong();
         Console.WriteLine(song.TITLE);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
         Console.WriteLine(ex.StackTrace);
     }
 }
Exemple #3
0
 public void InsertSongTest()
 {
     try
     {
         MusicDao musicDao = new MusicDao();
         musicDao.Initialize();
         SONG song = musicDao.PickRandomSong();
         song.TITLE = "This is a test";
         musicDao.InsertSong(song.TITLE, song.ARTIST, song.ALBUM, song.GENRE, song.DURATION, song.BITRATE, song.FILESIZE, song.LOCATION);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
         Console.WriteLine(ex.StackTrace);
         throw;
     }
 }