public void Profit() { decimal buyingPrice = 100; decimal sellingPrice = 125; decimal profitRate = 20; if (PriceHelper.ApplyProfit(buyingPrice, profitRate) != sellingPrice) { throw new Exception(); } }