bjedrzejewski / chessmates

Statistics for your Lichess team
1 stars 3 forks source link

Adding lichess data tests #30

Closed janakerman closed 7 years ago

janakerman commented 7 years ago

Resolves #24.

This adds sort of unit, sort of integration tests (really want opinions here!).

The tests hit the newly created LichessDataService and use the HttpUtility to stub out HTTP responses for given end points. This is testing the parsing and fetching logic of Lichess entities.

Another example of tests that will be added into this file are the tests that will come in to ensure that the LichessDataService is saving the games to our repository as they come in, etc.