@Test public void shouldRenderTotalExpensesOfCurrentWeek() throws Exception { presenter.renderTotalExpenses(); verify(view).displayTotalExpenses(190l); }
public void renderTotalExpenses() { view.displayTotalExpenses(expenseCollection.getTotalExpense()); }
CurrentWeekExpensePresenter { public void renderTotalExpenses() { view.displayTotalExpenses(expenseCollection.getTotalExpense()); } }
CurrentWeekExpensePresenter { public void renderTotalExpenses() { view.displayTotalExpenses(expenseCollection.getTotalExpense()); } CurrentWeekExpensePresenter(ExpenseDatabaseHelper database, CurrentWeekExpenseView view); }
CurrentWeekExpensePresenter { public void renderTotalExpenses() { view.displayTotalExpenses(expenseCollection.getTotalExpense()); } CurrentWeekExpensePresenter(ExpenseDatabaseHelper database, CurrentWeekExpenseView view); void renderTotalExpenses(); void renderCurrentWeeksExpenses(); }
CurrentWeekExpensePresenter { public void renderTotalExpenses() { view.displayTotalExpenses(expenseCollection.getTotalExpense()); } CurrentWeekExpensePresenter(ExpenseDatabaseHelper database, CurrentWeekExpenseView view); void renderTotalExpenses(); void renderCurrentWeeksExpenses();  }