...
The class DiscountMixinMixin
extends/intercepts the AccommodationMixin
and provides the logic for the discount slice. It overrides only the CheckOut
method. Again, two utility methods are used for testing:
int CountPastAccommodations ()
// count ALL accommodations in the_discountInfoRepository
int CountPastAccommodations (string name)
// count them for the given name