Skip to content

Conversation

@pereyma-igor
Copy link

This PR implements an 'IExchangeRateProvider' for the Czech National Bank (CNB).
The provider downloads the 'daily.txt' file from CNB, parses it, and maps the results to the existing 'ExchangeRate' domain model.

Key points:

  • Added 'IExchangeRateProvider' contract.
  • Implemented 'CnbExchangeRateProvider' (download → parse → map).
  • Returned only currencies supported by CNB, normalized to "per one unit".
  • Added basic debug logging in DEBUG builds.
  • Added unit tests for parsing and mapping.

Details in Readme_Solution.md.

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

Successfully merging this pull request may close these issues.

1 participant