Closed jasonriley closed 3 years ago
The factory methods for getting rates don't set chargeType. Please fix:
chargeType
createRider
createRiderRate
createConsumptionRate
CONSUMPTION_BASED
createDemandRate
DEMAND_BASED
createQuantityRate
QUANTITY
createFixedRate
FIXED_PRICE
createMinimumRate
MINIMUM
createMaximumRate
MAXIMUM
Also update all the unit tests to assert that these values are set correctly.
The factory methods for getting rates don't set
chargeType
. Please fix:createRider
is the only one without achargeType
. Please rename this tocreateRiderRate
createConsumptionRate
withchargeType
ofCONSUMPTION_BASED
createDemandRate
withchargeType
ofDEMAND_BASED
createQuantityRate
withchargeType
ofQUANTITY
createFixedRate
withchargeType
ofFIXED_PRICE
createMinimumRate
withchargeType
ofMINIMUM
createMaximumRate
withchargeType
ofMAXIMUM
Also update all the unit tests to assert that these values are set correctly.