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

[feat] 장바구니에 현재까지 담은 음식 상품의 금액을 볼 수 있는 기능 추가 #70

Conversation

Hyeon-Uk
Copy link
Contributor

@Hyeon-Uk Hyeon-Uk commented Aug 15, 2024

💡 다음 이슈를 해결했어요.

Issue Link - #66

  • 장바구니에 담긴 음식들의 금액 총 합을 볼 수 있다.

💡 이슈를 처리하면서 추가된 코드가 있어요.

CartFixture

Cart 도메인 테스트를 진행할 때 더미 데이터를 쉽게 가져올 수 있도록 Fixture를 구현

TestStore

테스트를 위해 Mock객체인 TestStore를 구현

TestMenu

테스트를 위해 Mock객체인 TestMenu를 구현


✅ 셀프 체크리스트

  • 내 코드를 스스로 검토했습니다.
  • 필요한 테스트를 추가했습니다.
  • 모든 테스트를 통과합니다.
  • 브랜치 전략에 맞는 브랜치에 PR을 올리고 있습니다.
  • 커밋 메세지를 컨벤션에 맞추었습니다.
  • wiki를 수정했습니다.

- customerId와 menuList를 불변으로 선언해서 내부 안정성 향상
- Cart Domain을 사용하는 같은 패키지내의 클래스, 혹은 자식 클래스는 List를 커스텀할 수 있도록 생성자 추가.
- 같은 가게의 메뉴만 담을 수 있다.
- 오픈한 가게의 메뉴만 담을 수 있다.
- 빈 장바구니면 0원이 return된다.
- 담긴 메뉴의 총 합이 return된다.
- 더 명확하게 가져온다는 의도를 메서드명에 명시
- 현재 담긴 금액을 알 수 있는 메서드 추가
- 빈 장바구니면 0원이 return된다.
- 담긴 메뉴의 총 합이 return된다.
- 빈 장바구니면 0원이 return된다.
- 담긴 메뉴의 총 합이 return된다.
@Hyeon-Uk Hyeon-Uk added the ✨ Feature 기능 개발 label Aug 15, 2024
@Hyeon-Uk Hyeon-Uk added this to the 프로토타입 만들기 milestone Aug 15, 2024
@Hyeon-Uk Hyeon-Uk self-assigned this Aug 15, 2024
Copy link
Member

@kimhyun5u kimhyun5u left a comment

Choose a reason for hiding this comment

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

LGTM !

Copy link
Member

@june-777 june-777 left a comment

Choose a reason for hiding this comment

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

LGTM! 카트에 관련하여 궁금한점 코멘트 남겼습니다~

@Hyeon-Uk Hyeon-Uk merged commit ae61e87 into main Aug 15, 2024
1 check passed
@Hyeon-Uk Hyeon-Uk deleted the feature/66_Hyeon-Uk_장바구니에_현재까지_담은_음식_상품의_금액을_볼_수_있어야_한다 branch August 15, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 기능 개발
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[기능] 장바구니에 현재까지 담은 음식 상품의 금액을 볼 수 있어야 한다.
3 participants