Exemplo n.º 1
0
 public void Setup()
 {
     m_View         = new TestHistoryView();
     m_HistoryModel = new TestHistoryModel();
     m_MainModel    = new TestMainModel();
     m_Presenter    = new HistoryPresenter(m_View, m_HistoryModel, m_MainModel);
 }
Exemplo n.º 2
0
 public void TearDown()
 {
     m_Presenter.Stop();
     m_View         = null;
     m_HistoryModel = null;
     m_Presenter    = null;
 }
        public void TestAssigningPresenters()
        {
            m_Presenter.Start();

            var changesView = new TestChangesView();

            m_Presenter.AssignChangesPresenter(changesView);
            Assert.IsNotNull(changesView.Presenter);

            var historyView = new TestHistoryView();

            m_Presenter.AssignHistoryPresenter(historyView);
            Assert.IsNotNull(historyView.Presenter);
        }