You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently trying to write code to unit test the parsing logic of the SpotifyHttpClient. This relies on the JSON that Spotify returns to me. I was thinking that I could easily test the parsing logic but mocking the HttpClient.SendAsync method to return the JSON of a specific API endpoint and comparing the parsed output to what I expect to make sure it is parsing correctly.
I am not sure if I am going about this the right way. The code resides SpotSync.Tests > UnitTests > SpotifyHttpClientTests
The text was updated successfully, but these errors were encountered:
Currently trying to write code to unit test the parsing logic of the SpotifyHttpClient. This relies on the JSON that Spotify returns to me. I was thinking that I could easily test the parsing logic but mocking the HttpClient.SendAsync method to return the JSON of a specific API endpoint and comparing the parsed output to what I expect to make sure it is parsing correctly.
I am not sure if I am going about this the right way. The code resides SpotSync.Tests > UnitTests > SpotifyHttpClientTests
The text was updated successfully, but these errors were encountered: