Skip to content
Promotion service kata
Java C# Kotlin PHP Python
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
csharp Rename C# test project to .Tests. Nov 10, 2019
java Remove formatting to avoid locale specific code. Oct 16, 2019
kotlin Moves support code to end of file. Oct 15, 2019
php Port Java to PHP with Hamcrest. Oct 17, 2019
python Port Java to Python. Oct 17, 2019
LICENSE Formats README and adds license. Oct 15, 2019
README.md

README.md

Promotion Service Kata

The promotion service calculates discounts for promoted items. (It's a bit crazy because it's also reducing the tax 🙄) The Item class is a classic DTO and its fields are not encapsulated.

Your Task

Make Item a rich object and encapsulate its fields 💪 Use existing unit tests to make sure things are still working.

Bonus: Make Item immutable.

You can’t perform that action at this time.