export class TwoSameTomesDiscountCalculator implements DiscountCalculator { | |
private FIVE_PERCENT_DISCOUNT = 1 - 0.05 | |
applyDiscountOn(price: number): number { | |
return price * this.FIVE_PERCENT_DISCOUNT | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment