Extract view behaviour in presenter for test.