Right now, we have the list of Budgets living in the UBudgetApp class. This makes testing the AddEntryActivity class a bit weird (due to some bootstrapping problem), so I propose we move the list of Budgets into the Budget class as a private static field.
This way, we can also add a budget to the list upon creating it in the constructor so we don't have to duplicate code elsewhere.
Right now, we have the list of
Budgets
living in theUBudgetApp
class. This makes testing theAddEntryActivity
class a bit weird (due to some bootstrapping problem), so I propose we move the list ofBudgets
into theBudget
class as a private static field.This way, we can also add a budget to the list upon creating it in the constructor so we don't have to duplicate code elsewhere.