public TwitterFriendsSearcherPresenter(ITwitterFriendsSearcherView view, IIncreaseFollowersService increaseFollowersService) { View = view; IncreaseFollowersService = increaseFollowersService; IncreaseFollowersService.UserFollowed += UserFollowedByIncreaseFollowersService; IncreaseFollowersService.UserUnfollowed += UserUnfollowedByIncreaseFollowersService; }
public void SetUp() { view = MockRepository.GenerateMock<ITwitterFriendsSearcherView>(); increaseFollowersService = MockRepository.GenerateMock<IIncreaseFollowersService>(); presenter = new TwitterFriendsSearcherPresenter(view, increaseFollowersService); }