public void RandomFillTest() { try { MusicDao musicDao = new MusicDao(); musicDao.Initialize(); musicDao.RandomFill(); } catch (Exception ex) { Console.WriteLine(ex.Message); Console.WriteLine(ex.StackTrace); throw; } }
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); } }
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; } }