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

Chapter 04 를 공부하고 테스트 코드를 추가하라 #3

Merged
merged 21 commits into from
Mar 12, 2020

Conversation

johngrib
Copy link
Owner

@johngrib johngrib commented Mar 12, 2020

image

image

* 할인 조건은 할인 조건의 타입을 갖는다.
* 기존의 설계와 동일한 부분은 세 가지 뿐이다.
    * title 을 인스턴스 변수로 포함한다.
    * runningTime 을 인스턴스 변수로 포함한다.
    * fee 를 인스턴스 변수로 포함한다.
* 가장 큰 차이점은 할인 조건 목록(discountConditions)이 포함되어 있다는 것.
* DiscountCondition 생성자를 추가했습니다.
* DiscountConditionType.PERIOD 일 경우의 isDiscountable 테스트 코드를 작성했습니다.
테스트를 위해 Getter를 추가했습니다.
@johngrib johngrib merged commit c05c319 into master Mar 12, 2020
@johngrib johngrib deleted the chapter-04 branch March 12, 2020 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant