예제 #1
0
        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);
        }
예제 #2
0
 public void CalculateDiscount()
 {
     Discount = CalculationService.Discount(NetPurchasePrice, GrossPurchasePrice);
 }