예제 #1
0
        void InitializePresenterAndModel()
        {
            IDictionaryService dictionary  = (IDictionaryService)GetService(typeof(IDictionaryService));
            DTE                   dte      = (DTE)GetService(typeof(DTE));
            ISolutionModel        solution = new DteSolutionModel(dte.Solution, Site);
            CreateModulePageModel model    = new CreateModulePageModel(dictionary, solution, Site);

            _presenter = new CreateModulePagePresenter(this, model);
            _presenter.OnViewReady();
        }
 void InitializePresenterAndModel()
 {
     IDictionaryService dictionary = (IDictionaryService)GetService(typeof(IDictionaryService));
     DTE dte = (DTE)GetService(typeof(DTE));
     ISolutionModel solution = new DteSolutionModel(dte.Solution, Site);
     CreateModulePageModel model = new CreateModulePageModel(dictionary, solution, Site);
     _presenter = new CreateModulePagePresenter(this, model);
     _presenter.OnViewReady();
 }
 public void SetUp()
 {
     dictionary = new MockDictionaryService();
     solutionModel = new MockSolutionModel(null);
     model = new CreateModulePageModel(dictionary, solutionModel, null);
 }
        public void SetUp()
        {
            dictionary = new MockDictionaryService();
            view = new MockCreateModulePage();
            solutionModel = new MockSolutionModel(null);
            model = new CreateModulePageModel(dictionary, solutionModel, null);
            presenter = new CreateModulePagePresenter(view, model);

            MockProjectModel moduleProject1 = new MockProjectModel();
            moduleProject1.ProjectPath = (new System.IO.DirectoryInfo(@".\Support\MockWebSite")).FullName;
            dictionary.SetValue("WebUIProject", moduleProject1);
        }