예제 #1
0
        public void CanGetAbsoluteGainForOpenLongPositions()
        {
            var result = calculationService.GetAbsoluteGain(121.12m,
                                                            null, 100.02m, 120, dividends, TradeTypesDTO.Long);

            Assert.IsTrue(result == 3572.04m);
        }