public void TauxDeRemiseCalculTest() { decimal prixAchatNet = 10.25M; decimal prixAchatBrut = 12.67M; decimal tauxDeRemise = 19.10M; decimal result = Math.Round(CalculationService.Discount(prixAchatNet, prixAchatBrut), 2); Assert.Equal(tauxDeRemise, result); }
public void CalculateDiscount() { Discount = CalculationService.Discount(NetPurchasePrice, GrossPurchasePrice); }