Пример #1
0
        public void GetNetMarkRatePercentage()
        {
            decimal buyingAmount    = 100;
            decimal sellingHTAmount = 200m;
            decimal FeeAmount       = 10;

            if (Math.Round(PriceHelper.GetNetMarkRatePercentage(buyingAmount, FeeAmount, sellingHTAmount), 2) != 45)
            {
                throw new Exception();
            }
        }