public void SetUp()
 {
     view = new MockWatchListView();
     watchListService = new MockWatchListService();
     marketFeedService = new MockMarketFeedService();
     eventAggregator = new MockEventAggregator();
 }
Esempio n. 2
0
        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);
        }