示例#1
0
 public void SetUp()
 {
     view              = new MockWatchListView();
     watchListService  = new MockWatchListService();
     marketFeedService = new MockMarketFeedService();
     eventAggregator   = new MockEventAggregator();
 }
示例#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);
        }