public CompareToolSettingsVm(ICompareToolSettingsPersist compareToolSettingsPersist) { _compareToolSettingsPersist = compareToolSettingsPersist; CompareTools = new ObservableCollection <CompareToolSettings>(); if (IsInDesignMode) { CompareTools.Add(new CompareToolSettings() { Name = "Beyond Compare3", }); CompareTools.Add(new CompareToolSettings() { Name = "Kdiff3", }); } }
public void Setup() { _compareTools = new List <CompareToolSettings> { new CompareToolSettings { Name = "Beyond Compare3", ExePath = "dummyPath" }, new CompareToolSettings { Name = "KDiff3", ExePath = "dummyPath" } }; _compareToolsContainer = new CompareToolSettingsContainer(_compareTools, -1); _compareToolSettingsPersist = Substitute.For <ICompareToolSettingsPersist>(); _compareToolSettingsPersist.Load().Returns(_compareToolsContainer); _viewModel = new CompareToolSettingsVm(_compareToolSettingsPersist); }
public DiffToolLauncher(ICompareToolSettingsPersist compareToolSettingsPersist, IDiffToolParamBuilder diffToolParamBuilder) { _compareToolSettingsPersist = compareToolSettingsPersist; _diffToolParamBuilder = diffToolParamBuilder; }