Exemplo n.º 1
0
 void CreateProgressMonitor()
 {
     progressMonitorFactory = new FakeProgressMonitorFactory();
     fakeProgressMonitor    = progressMonitorFactory.ProgressMonitor;
     packageEvents          = new PackageManagementEvents();
     progressMonitor        = new TestableCheckForUpdatesProgressMonitor(progressMonitorFactory, packageEvents);
 }
        void CreateRunner()
        {
            actions                 = new List <IPackageAction> ();
            progressMessage         = new ProgressMonitorStatusMessage("Status", "Success", "Error", "Warning");
            packageManagementEvents = new PackageManagementEvents();
            progressMonitorFactory  = new FakeProgressMonitorFactory();
            progressMonitor         = progressMonitorFactory.ProgressMonitor;
            instrumentationService  = new TestableInstrumentationService();

            runner = new TestableBackgroundPackageActionRunner(
                progressMonitorFactory,
                packageManagementEvents,
                instrumentationService);
        }
Exemplo n.º 3
0
        void CreateRunner()
        {
            project      = new FakeDotNetProject(@"d:\projects\MyProject\MyProject.csproj");
            project.Name = "MyProject";
            project.TargetFrameworkMoniker = new TargetFrameworkMoniker("4.5");
            progressMonitorFactory         = new FakeProgressMonitorFactory();
            progressMonitor         = progressMonitorFactory.ProgressMonitor;
            packageManagementEvents = new PackageManagementEvents();

            runner = new TestablePackageCompatibilityRunner(
                project,
                progressMonitorFactory,
                packageManagementEvents);
        }
        void CreateRunner()
        {
            actions                 = new List <IPackageAction> ();
            progressMessage         = new ProgressMonitorStatusMessage("Status", "Success", "Error", "Warning");
            packageManagementEvents = new PackageManagementEvents();
            progressMonitorFactory  = new FakeProgressMonitorFactory();
            progressMonitor         = progressMonitorFactory.ProgressMonitor;
            repositoryFactoryEvents = new FakePackageRepositoryFactoryEvents();
            progressProvider        = new PackageManagementProgressProvider(repositoryFactoryEvents, handler => {
                handler.Invoke();
            });

            runner = new TestableBackgroundPackageActionRunner(
                progressMonitorFactory,
                packageManagementEvents,
                progressProvider);
        }
        void CreateRunner()
        {
            project      = new FakeDotNetProject(@"d:\projects\MyProject\MyProject.csproj");
            project.Name = "MyProject";
            project.TargetFrameworkMoniker = new TargetFrameworkMoniker("4.5");
            solution = new FakePackageManagementSolution();
            registeredRepositories  = new FakeRegisteredPackageRepositories();
            progressMonitorFactory  = new FakeProgressMonitorFactory();
            progressMonitor         = progressMonitorFactory.ProgressMonitor;
            packageManagementEvents = new PackageManagementEvents();

            repositoryFactoryEvents = new FakePackageRepositoryFactoryEvents();
            progressProvider        = new PackageManagementProgressProvider(repositoryFactoryEvents, handler => {
                handler.Invoke();
            });

            runner = new TestablePackageCompatibilityRunner(
                project,
                solution,
                registeredRepositories,
                progressMonitorFactory,
                packageManagementEvents,
                progressProvider);
        }