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; instrumentationService = new TestableInstrumentationService (); runner = new TestableBackgroundPackageActionRunner ( progressMonitorFactory, packageManagementEvents, instrumentationService); }
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); }