public SettingsViewModel(IOpenCoverUiSettings settings) { _settings = settings; ProcessSelectOpenCoverExe = new RelayCommand(FireSelectOpenCoverExeEvent); ProcessSelectNUnitExe = new RelayCommand(FireSelectNUnitExeEvent); if (IsInDesignMode) { NUnitExePath = @"C:\nunit\nunit-console.exe"; OpenCoverExePath = @"C:\opencover\opencover.console.exe"; } else { _nUnitExePath = _settings.NUnitPath; _openCoverExePath = _settings.OpenCoverPath; } }
public SettingsViewModel(IOpenCoverUiSettings settings) { _settings = settings; ProcessSelectOpenCoverExe = new RelayCommand(FireSelectOpenCoverExeEvent); ProcessSelectNUnitExe = new RelayCommand(FireSelectNUnitExeEvent); if (IsInDesignMode) { NUnitExePath = @"C:\nunit\nunit-console.exe"; OpenCoverExePath = @"C:\opencover\opencover.console.exe"; } else { _nUnitExePath = _settings.NUnitPath; _openCoverExePath = _settings.OpenCoverPath; } }
public void SetUp() { _openCoverUiSettings = Substitute.For <IOpenCoverUiSettings>(); _model = new SettingsViewModel(_openCoverUiSettings); }
public void SetUp() { _openCoverUiSettings = Substitute.For<IOpenCoverUiSettings>(); _model = new SettingsViewModel(_openCoverUiSettings); }