public void RoundToFivePence_Returns_CorrectValue(decimal value, decimal expected) { Assert.Equal(expected, RoundingHelpers.RoundUpToNearestFivePence(value)); }
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); }