public Money GetValue(Month month, Year year)
        {
            var transactionsValue = this.transactions.GetValueOf(month, year);

            if (IsClosed || IsValueOverBudget(transactionsValue)) {
                return transactionsValue;
            }

            return Budget.Clone();
        }
Exemple #2
0
 public void AYearShouldBeConvertedImplicitelyToAnInt()
 {
     int year = new Year(2012);
     Assert.That(2012 == year);
 }