public Money GetValue(Month month, Year year) { var transactionsValue = this.transactions.GetValueOf(month, year); if (IsClosed || IsValueOverBudget(transactionsValue)) { return transactionsValue; } return Budget.Clone(); }
public void AYearShouldBeConvertedImplicitelyToAnInt() { int year = new Year(2012); Assert.That(2012 == year); }