Created
March 1, 2020 10:25
-
-
Save mickaelw/78dcdd8ad7f93f8109f33d56bfc93c34 to your computer and use it in GitHub Desktop.
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
export class Basket { | |
//... | |
private applyDiscount(totalOfSameBookBorrowed: number, price: number): number { | |
return DiscountCalculatorFactory | |
.for(totalOfSameBookBorrowed) | |
.applyDiscountOn(price) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment