Example #1
0
 /// <summary>
 ///
 /// </summary>
 private void SetIntrinsicSharePrice()
 {
     try
     {
         IntrinsicSharePrice = _resIncModel.Calculate(_stockInfo.StockData.Financials.Last(), DesiredRateOfReturn);
     }
     catch (Exception x)
     {
         Log.Error(x);
     }
 }
Example #2
0
        public void CalculateTest()
        {
            ResidualIncomeModel test       = new ResidualIncomeModel();
            Financials          financials = new Financials();

            financials.BookValuePerShare = 26.77m;
            financials.EarningsPerShare  = 4.67m;
            decimal actual = test.Calculate(financials, 13.5m);

            Assert.AreEqual(34.59m, Decimal.Round(actual, 2));
        }