public void SetUp() { _mocks = new MockRepository(); _view = new AutoCompleteView(); _attachedTo = new Control(); _commandHistory = _mocks.DynamicMock<ICommandHistory>(); _presenter = new AutoCompletePresenter(_view, _attachedTo, _commandHistory); _presenter.Init(); }
public MainForm() { InitializeComponent(); _internalCommandManager = new CommandManager(this); _commandLoader = new CommandLoader(new DirectoryInfo(Path.Combine(Application.StartupPath, "Commands"))); var historyPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Commander"); historyPath = Path.Combine(historyPath, "history.txt"); _commandHistoryManager = new CommandHistoryManager(new FileInfo(historyPath)); _applicationSettingsManager = new ApplicationSettingsManager(); _autoCompletePresenter = new AutoCompletePresenter(this, _commandHistoryManager); _clipboardHistory = new ClipboardHistoryManager(); _clipboardHistoryPresenter = new ClipboardHistoryPresenter(_clipboardHistory, this, this); _shellIntegration = new Win7Shell(AppId, this); }