/// <inheritdoc />
        public IChangesPresenter AssignChangesPresenter(IChangesView view)
        {
            var presenter = new ChangesPresenter(view, m_Model.ConstructChangesModel(), m_Model);

            view.Presenter = presenter;
            return(presenter);
        }
Exemple #2
0
 public void Setup()
 {
     m_Provider       = new TestSourceControlProvider();
     m_MainModel      = new MainModel(m_Provider);
     m_ChangesModel   = m_MainModel.ConstructChangesModel();
     m_View           = new TestChangesTabPageView();
     m_Presenter      = new ChangesPresenter(m_View, m_ChangesModel, m_MainModel);
     m_View.Presenter = m_Presenter;
     m_Window.rootVisualElement.Add(m_View);
 }