Skip to content

Conversation

@GoncaloCanteiro
Copy link
Contributor

Relates to:

Proposed Changes

  • Move controller logic to use case
  • Refactor service to use case
  • Remove create card service

This pull request closes #1294

  - create dto for createCardUseCase response and parameters
  - transfer service logic to useCase
  -Add tests for error handling
  -Add test to verify if card is hidden
  -Add test to verify if card is not hidden
  -Add test to verify if return a card if doest have items
@GoncaloCanteiro GoncaloCanteiro added this to the Full Version milestone Mar 24, 2023
@GoncaloCanteiro GoncaloCanteiro self-assigned this Mar 24, 2023
@GoncaloCanteiro GoncaloCanteiro marked this pull request as ready for review March 24, 2023 19:24
Copy link
Contributor

@nunocaseiro nunocaseiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@GoncaloCanteiro GoncaloCanteiro merged commit 7479aa6 into main Mar 28, 2023
@GoncaloCanteiro GoncaloCanteiro deleted the refactor/create-card-service-to-usecase branch March 28, 2023 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend enhancement New feature or request tests

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[REFACTOR]: create.card.service to useCase and remove logic from card controller

3 participants