示例#1
0
        public void CummulativeGrowthTest()
        {
            var bTransactionEntry = new TransactionEntry()
            {
                Saldo = 248,
                Date  = new DateTime(2018, 06, 01).ToString("o")
            };
            var eTransactionEntry = new TransactionEntry()
            {
                Saldo = 100,
                Date  = new DateTime(2018, 01, 01).ToString("o")
            };

            var change = OperationsService.CompoundGrowthRate(bTransactionEntry, eTransactionEntry);

            Assert.IsTrue(Math.Abs(change - 20) < 1);
        }