Exemple #1
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()
        {
            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);
        }