assertEquals(new Money("5"), calculationResponse(option, createCandidateOrder(new BigDecimal("80.00"), 1, new String[] { "5" }, null, option)));
assertEquals(new Money("10"), calculationResponse(option, createCandidateOrder(new BigDecimal("18.00"), 2, new String[] { "8", "2" }, null, option)));
}
public void testFlatRatesWithBands() throws Exception {
BandedPriceFulfillmentOption option = createPriceBands(new String[] { "30", "20", "10" },
new String[] { "30", "20", "10" },
new FulfillmentBandResultAmountType[] { FulfillmentBandResultAmountType.RATE,
FulfillmentBandResultAmountType.RATE,
FulfillmentBandResultAmountType.RATE });
assertEquals(new Money("35"), calculationResponse(option, createCandidateOrder(new BigDecimal("18.00"), 6, new String[] { "10", "15" }, null, option)));