public MusixmatchClient InitializeClient()
 {
     if (client == null)
     {
         MusixmatchToken token = new MusixmatchToken();
         client = new MusixmatchClient(token);
     }
     return(client);
 }
        public void SongSearchByLyrics()
        {
            Thread.Sleep(1000);
            MusixmatchClient client = InitializeClient();

            try
            {
                var tracks = client.SongSearchByLyrics("So I'm tired of all the pain, all the misery inside");
                Assert.IsNotNull(tracks, "SongSearchByLyrics() returned null.");
            }
            catch (MusixmatchRequestException ex)
            {
                Assert.Fail($"SongSearchByLyrics() returned error code {(int)ex.StatusCode} ({ex.StatusCode.ToString()}).");
            }
        }
        public void SongSearch()
        {
            Thread.Sleep(1000);
            MusixmatchClient client = InitializeClient();

            try
            {
                var tracks = client.SongSearch("Getty - FLVSH OUT");
                Assert.IsNotNull(tracks, "SongSearch() returned null.");
            }
            catch (MusixmatchRequestException ex)
            {
                Assert.Fail($"SongSearch() returned error code {(int)ex.StatusCode} ({ex.StatusCode.ToString()}).");
            }
        }
        public void GetTrackById()
        {
            Thread.Sleep(1000);
            MusixmatchClient client = InitializeClient();

            try
            {
                var track = client.GetTrackById(182281390);
                Assert.IsNotNull(track, "GetTrackById() returned null.");
            }
            catch (MusixmatchRequestException ex)
            {
                Assert.Fail($"GetTrackById() returned error code {(int)ex.StatusCode} ({ex.StatusCode.ToString()}).");
            }
        }