Exemple #1
0
 public MenuAndToolBarPresenter(IMenuAndToolBarView view, IMenuBarItemRepository menuBarItemRepository,
                                IButtonGroupRepository buttonGroupRepository, IMRUProvider mruProvider,
                                ISkinManager skinManager, IStartOptions startOptions, IWorkspace workspace, IActiveSubjectRetriever activeSubjectRetriever) : base(view, menuBarItemRepository, mruProvider)
 {
     _menuBarItemRepository  = menuBarItemRepository;
     _buttonGroupRepository  = buttonGroupRepository;
     _skinManager            = skinManager;
     _startOptions           = startOptions;
     _workspace              = workspace;
     _activeSubjectRetriever = activeSubjectRetriever;
     _enabled = true;
 }
Exemple #2
0
 protected override void Context()
 {
     _context       = A.Fake <IExecutionContext>();
     _workspace     = A.Fake <IWorkspace>();
     _configuration = A.Fake <IApplicationConfiguration>();
     _project       = new PKSimProject {
         Creation = { Version = "CreationVersion" }
     };
     A.CallTo(() => _context.Resolve <IApplicationConfiguration>()).Returns(_configuration);
     A.CallTo(() => _configuration.Version).Returns("1.2.3");
     sut = new LoadProjectFromSnapshotCommand(_workspace, _project, _snapshotFile);
 }