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;
		    };
		}
Ejemplo n.º 2
0
        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);
            };
        }