-
Notifications
You must be signed in to change notification settings - Fork 0
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
도서 대출 연장 기능 추가 및 테스트 #14
Open
shine-17
wants to merge
9
commits into
main
Choose a base branch
from
feature/1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3221555
도서 대출 연장 기능 추가 및 테스트
shine-17 7a89eb5
연장 가능여부 확인 로직 변경
shine-17 23ec6b3
연장한 대출의 반납 일자 변경하는 책임을 Period로 변경
shine-17 886f768
- 연장 가능한 날짜인지 여부의 책임을 Period에 할당
shine-17 8a5658f
연장 가능한 날짜인지 판단하는 로직 변경
shine-17 fc84d63
예약이 있는지 판단하는 로직 변경
shine-17 559eeb4
Inventory 테스트셋 추가
shine-17 43abbc2
기간과 대출 기간의 도메인 분리
shine-17 0c0ee5e
기간과 대출 기간의 도메인 분리
shine-17 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
이렇게 고민했었는데 매개변수를 받아서 연장된 Period 인스턴스를 새로 만든다는 의미에
createExtended
가 가장 적절하다고 생각해서 작성했습니다.토모님은 이 메서드명을 어떻게 지으실지 궁금합니다 ㅎㅎ
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.
저라면.. 그냥 extend?
Period 의 역할이니 한번 읽어보면 period create extended 랑 period extend 어느쪽 문장이 편한가요?
혹은 도메인 한정적이어도 된다면 renew 도 좋겠네요 ㅎㅎ
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.
오.. 이렇게 읽어보니 period extend가 더 편합니다.
저는 기간 연장된 객체를 반환한다 라고 생각해서
extend()
는 command 성격이라 배제를 했었습니다.. ㅎㅎ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.
그래서
get
을 붙이셨군요 ㅎㅎ예를들어,
LocalDate#plusWeeks(int)
메서드는 어떻게 생각하시나요?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.
불변객체일 경우는 다르군요..!
LocalDate.plusWeeks()
같은 경우는LocalDate
가 불변객체이기 때문에 상태 값을 변경하려면 새로운 인스턴스를 만드는 방법밖에 없어서 저렇게 사용한 것 같습니다. 그렇다면Period
도 같은 경우겠네요!