public MainViewModel( Func<Uri, ITfsExplorer> explorerFactory, IWorkItems workItems, TestSelectionViewModel testSelection) : this() { _explorerFactory = explorerFactory; WorkItems = workItems; TestSelection = testSelection; // ugh, hacky TestSelection.SolutionRetriever = () => { IEnumerable<TfsSolution> solutions = null; HandleServerError(() => solutions = _explorer.Solutions()); return solutions; }; }
public MainViewModel( Func <Uri, ITfsExplorer> explorerFactory, IWorkItems workItems, TestSelectionViewModel testSelection) : this() { _explorerFactory = explorerFactory; WorkItems = workItems; TestSelection = testSelection; // ugh, hacky TestSelection.SolutionRetriever = () => { IEnumerable <TfsSolution> solutions = null; HandleServerError(() => solutions = _explorer.Solutions()); return(solutions); }; }