Ejemplo n.º 1
0
 public void Send_A_Request_To_MusicBrainz_And_Get_A_Response()
 {
     IMusicBrainzService musicBrainzService = new MusicBrainzService();
     var response = musicBrainzService.MakeRequest("http://musicbrainz.org/ws/2/artist/5b11f4ce-a62d-471e-81fc-a69a8278c7da?&fmt=json&inc=url-rels+release-groups");
     Assert.IsNotNull(response);
 }
Ejemplo n.º 2
0
 //GET api/music/5b11f4ce-a62d-471e-81fc-a69a8278c7da
 public string[] Get(string id)
 {
     var musicBrainzService = new MusicBrainzService();
     var response  = musicBrainzService.MakeRequest(BaseUrl + id + QueryString);
     return new string[] {"Artist: " + response.Name};
 }