Test file for PercentageDiscount rule
Red: failing test for empty basket
Green: always return the basket that is passed in.
Passing test for basket with unrelated item in.
Green: failing test for basket with related item
R# store as fields
Green: implement discount logic
Passing test for basket with multiple related and unrelated items.
Red: failing test for a discount that isn't 100%.
R# extract variable
Green: calculate the discount to apply instead of giving the item for free.
Red: failing test for a discount round to lowest price (cheaper for customer)
Move the minus operator to be after the cast (no change in calculation).
Green: pass test be always rounding up to the nearest whole number.
R# move class to own file.
Merge branch 'rules/percentage-discount'