Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit testing SpotifyHttpClient #5

Closed
hibroseph opened this issue Aug 30, 2020 · 0 comments
Closed

Unit testing SpotifyHttpClient #5

hibroseph opened this issue Aug 30, 2020 · 0 comments

Comments

@hibroseph
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant