public void Can_convert_amount_to_reward_points() { _rewardPointsSettings.Enabled = true; _rewardPointsSettings.ExchangeRate = 512M; //vice versa Assert.AreEqual(44, _orderTotalCalcService.ConvertAmountToRewardPoints(22528)); }
public void Can_convert_amount_to_reward_points() { _rewardPointsSettings.Enabled = true; _rewardPointsSettings.ExchangeRate = 15M; //we calculate ceiling for reward points _orderTotalCalcService.ConvertAmountToRewardPoints(100).ShouldEqual(7); }