-
Notifications
You must be signed in to change notification settings - Fork 581
Filip - Mews backend developer task (.NET) #793
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
base: master
Are you sure you want to change the base?
Conversation
…BusinessLogic (Domain), Data (Infrastructure) and move and renamed main project to Console and moved it as a sub project. Also added Unit Tests for custom csv based parser.
…e logic. Also small rename of BusinessLogic class from updater to manager.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements a complete solution for the Mews backend developer task for Filip. It restructures the existing codebase into a multi-project architecture with proper separation of concerns, implements exchange rate fetching from CNB (Czech National Bank), and adds both API and web client interfaces.
Key changes:
- Restructured solution into separate projects: BusinessLogic, Data, Api, Console, Client, and UnitTests
- Implemented CNB exchange rate provider with CSV parsing using CsvHelper
- Added RESTful API with Swagger documentation and a web-based UI client
Reviewed Changes
Copilot reviewed 27 out of 28 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
| ExchangeRateUpdater.sln | Reorganized solution structure with multiple projects and solution folders |
| ExchangeRateUpdater.Data/ExchangeRateProvider.cs | Core implementation for fetching and parsing CNB exchange rates |
| ExchangeRateUpdater.Api/Controllers/ExchangeRatesController.cs | REST API controller for exchange rate queries |
| ExchangeRateUpdater.Console/Program.cs | Console application entry point with DI configuration |
| ExchangeRateUpdater.Client/wwwroot/index.html | Web UI for viewing exchange rates |
| ExchangeRateUpdater.BusinessLogic/Models/* | Moved models to proper namespace |
| ExchangeRateUpdater.UnitTests/ParserTests.cs | Unit tests for CSV parsing functionality |
| Various .csproj files | Project configurations targeting .NET 7.0 |
Comments suppressed due to low confidence (1)
jobs/Backend/Task/src/ExchangeRateUpdater.Console/Program.cs:1
- The Microsoft.AspNetCore namespace is imported but never used in this file. Remove this unused import.
using Microsoft.Extensions.DependencyInjection;
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jobs/Backend/Task/src/ExchangeRateUpdater.Data/ExchangeRateProvider.cs
Outdated
Show resolved
Hide resolved
jobs/Backend/Task/tests/ExchangeRateUpdater.UnitTests/ParserTests.cs
Outdated
Show resolved
Hide resolved
jobs/Backend/Task/src/ExchangeRateUpdater.Api/Models/ExchangeRateViewModel.cs
Outdated
Show resolved
Hide resolved
jobs/Backend/Task/src/ExchangeRateUpdater.Api/ExchangeRateUpdater.Api.csproj
Outdated
Show resolved
Hide resolved
jobs/Backend/Task/src/ExchangeRateUpdater.Client/wwwroot/index.html
Outdated
Show resolved
Hide resolved
jobs/Backend/Task/src/ExchangeRateUpdater.Client/wwwroot/index.html
Outdated
Show resolved
Hide resolved
jobs/Backend/Task/src/ExchangeRateUpdater.Api/Controllers/ExchangeRatesController.cs
Outdated
Show resolved
Hide resolved
jobs/Backend/Task/src/ExchangeRateUpdater.Data/ExchangeRateProvider.cs
Outdated
Show resolved
Hide resolved
jobs/Backend/Task/src/ExchangeRateUpdater.Data/ExchangeRateProvider.cs
Outdated
Show resolved
Hide resolved
…d exposed it to test project via assembly info. Removed some blank spaces in Client. Added the requested ConfigureAway(false) to prevent deadlock. Also made all exceptions more specific not using generic Exception ex anymore.
Hello this is the initial implementation for the backend task.
Reorganized the structure in multiple projects in src/ and tests/ to be more clean and organized.
I also added a Client and Api for frontend/backend testing for completeness.
Edit: I will be solving comments on my ticket later today for completeness👍
Edit2: I have completed copilot PR review fixes.
Edit3: I have added a docs section and a README.MD that was missing from the project