public void SetUp() { view = new MockWatchListView(); watchListService = new MockWatchListService(); marketFeedService = new MockMarketFeedService(); eventAggregator = new MockEventAggregator(); }
public void PresenterTakesCommandFromWatchListServiceAndSetsIntoView() { MockWatchListService service = new MockWatchListService(); MockAddWatchView view = new MockAddWatchView(); AddWatchPresenter presenter = new AddWatchPresenter(view, service); Assert.AreSame(view.AddWatchCommand, service.AddWatchCommand); Assert.AreSame(view, presenter.View); }