project-studying-dotnet / Streetcode-Server-September

Streetcode Server Project for UA-1237 .NET Group
MIT License
0 stars 1 forks source link

286 add to favourites endpoint #289

Closed refokcer closed 3 weeks ago

refokcer commented 3 weeks ago

dev

Summary of issue

Task: Create a MediatR handler that allows users to add a Streetcode to their favourite list. Steps:

  1. Create a AddStreetcodeToFavouritesCommand.
  2. Implement a AddStreetcodeToFavouritesHandler.
  3. Store the favourite list in the browser's localStorage.
  4. Create a controller action to handle adding to favourites.

Summary of change

  1. Created AddStreetcodeToFavouritesCommand.
  2. Implemented AddStreetcodeToFavouritesHandler.
  3. Stored the favourites list in localStorage.
  4. Created a controller action to handle adding to favourites.
  5. Covered with unit tests

CHECK LIST

sonarcloud[bot] commented 3 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
90.5% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud