Conversation
* Bag 클레스에 두 개의 생성자를 추가하였습니다.
* 테스트 편의를 위해 책에 없는 몇 가지 코드를 추가했습니다.
* `Bag.getAmount` 메소드
* `Ticket(Long fee)` 생성자
* `Theater.enter`메소드의 구현을 `TicketSeller.sellTo`로 이동시켰습니다. * `TicketSeller.getTicketOffice` 메소드를 삭제했습니다.
* `Bag`에 접근하는 모든 로직을 `Audience` 내부로 숨겼습니다.
* `Audience.buy` 메소드를 추가했습니다.
* `TicketSeller.sellTo` 메소드에서 bag 에 접근하는 부분을 buy 로 옮겼습니다.
* `Audience.getBag` 메소드를 삭제했습니다.
* 테스트
* `TheaterTest` 클래스를 삭제했습니다.
* `AudienceTest` 클래스를 추가했습니다.
* 가방에 티켓을 넣는 동작을 표현하는 `Bag.hold` 메소드를 추가했습니다.
* `Audience.buy`에서 가방에 접근하는 로직을 `Bag.hold`으로 옮겼습니다.
* `Bag`의 다음 메소드들을 `private`으로 변경하였습니다.
* `hasInvitation`
* `setTicket`
* `minusAmount`
* `plusAmount`
* `TicketOffice`
* `sellTicketTo` 메소드를 추가했습니다. 이제 매표소는 티켓을 관람객에게 판매하게 됩니다.
* 다음 메소드들을 `private`으로 변경했습니다.
* `getTicket`
* `minusAmount`
* `plusAmount`
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Uh oh!
There was an error while loading. Please reload this page.