Skip to content
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

refactor: create card service to usecase #1306

Merged
merged 10 commits into from
Mar 28, 2023

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
2 participants