public void TestGenerateProjectionBasic()
        {
            var mode = new CashflowProjectionModeMonthlySummary();

            var cpi = sut.GenerateProjectionAsync(new DateTime(2015, 01, 01), new DateTime(2015, 12, 31), 10000, 5000, mode).Result;

            //CashflowProjectionItems = cashflowEngineC.GenerateProjection(SelectedCashflow.Entity.CashflowBankAccounts,
            //        SelectedCashflow.Entity.StartDate,
            //        SelectedCashflow.Entity.StartDate.AddMonths(Decimal.ToInt32(QtyMonths.Value)),
            //        OpeningBalance.Value, Threshold.Value, SelectedMode);
        }
        public void TestGenerateProjection()
        {
            Decimal openingBalance = 10000;
            int qtyMonths = 6;
            DateTime endDate = cashflowStartDate.AddMonths(qtyMonths);
            var mode = new CashflowProjectionModeMonthlySummary();

            var cpi = sut.GenerateProjectionAsync(cashflowStartDate, endDate, openingBalance, 5000, mode).Result;

            int qtyProjections = qtyMonths + 1;

            Assert.AreEqual(qtyProjections+1, cpi.Count, "Quantity items");

            Decimal balance = openingBalance - (transferAmount * qtyProjections);

            Assert.AreEqual(balance, cpi[cpi.Count - 1].Balance, "Balance");
        }