Esempio n. 1
0
 public static void CreateMonthly(BudgetType budgetType, string label, double amount)
 {
     _budget.AddEntry(new BudgetEntryMonthly(amount, label, budgetType));
 }
Esempio n. 2
0
 public void CanSupportMonthlyBudgetEntries()
 {
     _budget.AddEntry(_monthlyEntry);
     Assert.That(_budget.TotalExpenses, Is.EqualTo(360.00));
     Assert.That(_budget.MonthlyExpenses(1), Is.EqualTo(30.00));
     Assert.That(_budget.MonthlyExpenses(12), Is.EqualTo(30.00));
 }