BudgetAnalyser.Engine.UnitTest.Ledger.SpentMonthlyLedgerReconciliationBehaviourTest.ShouldOnlyRemoveExcessUpToOpeningBalance_GivenOpeningBalanceIsGreaterThanBudgetAmount C# (CSharp) Метод

ShouldOnlyRemoveExcessUpToOpeningBalance_GivenOpeningBalanceIsGreaterThanBudgetAmount() приватный Метод

        public void ShouldOnlyRemoveExcessUpToOpeningBalance_GivenOpeningBalanceIsGreaterThanBudgetAmount()
        {
            Console.WriteLine($"Opening Balance: {this.subject.Balance:F2}");
            var testInput = new List<LedgerTransaction>
            {
                new BudgetCreditLedgerTransaction { Amount = 105M, Date = this.reconciliationDate, Narrative = "Budget Amount" },
                new CreditLedgerTransaction { Amount = -75M, Date = new DateTime(2013, 9, 11) }
            };
            this.subject.SetTransactionsForReconciliation(testInput, this.reconciliationDate);

            this.subject.Output();

            Assert.AreEqual(125M, this.subject.Balance);
        }
SpentMonthlyLedgerReconciliationBehaviourTest