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 ()
		{
			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);
        }
		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);
		}
 void CreateGenerator()
 {
     repositoryFactoryEvents = new FakePackageRepositoryFactoryEvents();
     generator = new UserAgentGeneratorForRepositoryRequests();
     generator.Register(repositoryFactoryEvents);
 }
		void CreateGenerator ()
		{
			repositoryFactoryEvents = new FakePackageRepositoryFactoryEvents ();
			generator = new UserAgentGeneratorForRepositoryRequests ();
			generator.Register (repositoryFactoryEvents);
		}