Example #1
0
 public void RoundToFivePence_Returns_CorrectValue(decimal value, decimal expected)
 {
     Assert.Equal(expected, RoundingHelpers.RoundUpToNearestFivePence(value));
 }
Example #2
0
        public decimal GetPrice()
        {
            var tax = RoundingHelpers.RoundUpToNearestFivePence(_purchaseItem.OriginalPrice * 0.1m);

            return(_purchaseItem.GetPrice() + tax);
        }
        public decimal GetPrice()
        {
            var importDuty = RoundingHelpers.RoundUpToNearestFivePence(_purchaseItem.OriginalPrice * 0.05m);

            return(_purchaseItem.GetPrice() + importDuty);
        }