Ejemplo n.º 1
0
 public void Setup()
 {
     m_View      = new TestChangesView();
     m_Model     = new TestChangesModel();
     m_MainModel = new TestMainModel();
     m_Presenter = new ChangesPresenter(m_View, m_Model, m_MainModel);
 }
Ejemplo n.º 2
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);
 }
 public void TearDown()
 {
     m_Presenter.Stop();
     m_View      = null;
     m_MainModel = null;
     m_Presenter = null;
 }
Ejemplo n.º 4
0
        // GET: Test
        public ActionResult Index()
        {
            TestMainModel model = new TestMainModel
            {
                List = new List <TestModel> {
                    new TestModel {
                        Id = 1, Name = "Test1"
                    }, new TestModel {
                        Id = 2, Name = "Test2"
                    }
                }
            };

            return(View(model));
        }
 public void Setup()
 {
     m_View      = new TestMainView();
     m_MainModel = new TestMainModel();
     m_Presenter = new MainPresenter(m_View, m_MainModel);
 }