void Update (UpdateAllPackagesInSolution updateAllPackages, ProgressMonitorStatusMessage progressMessage) { try { List<UpdatePackageAction> updateActions = updateAllPackages.CreateActions ().ToList (); PackageManagementServices.BackgroundPackageActionRunner.Run (progressMessage, updateActions); } catch (Exception ex) { PackageManagementServices.BackgroundPackageActionRunner.ShowError (progressMessage, ex); } }
void CreateUpdateAllPackagesInSolution() { fakeSolution = new FakePackageManagementSolution(); fakeSourceRepository = new FakePackageRepository(); updateAllPackagesInSolution = new UpdateAllPackagesInSolution(fakeSolution, fakeSourceRepository); }