Code Kata – Potter #6 – Discount for 5 Books and Integration

Finally, let’s add the discount rule for 5 books. To finish it up, I write some more tests, including an integration example, to see if everything works. All functionality is in the code, but I smell potential for improvements!

► All Potter Kata Episodes:
► Let’s Develop!
► Don’t Miss an Episode:
► CodingDojo:
► The Code:

«Code Kata»
Code Kata are small and simple programming problems that we execute to practice software engineering methods, like TDD or pair programming. The term is derived from Japanese martial arts.

«Other Series»
► Let’s Develop Conway’s Game of Life:
► Let’s Refactor MovieRental:

Share this: Facebooktwittergoogle_plusredditpinterestlinkedinmail | Follow me: twittergoogle_plusyoutube