public TestableUninstallNuGetPackageAction (
			FakeSolutionManager solutionManager,
			FakeDotNetProject project)
			: this (
				solutionManager,
				project,
				new FakeNuGetProjectContext (),
				new FakeNuGetPackageManager (),
				new PackageManagementEvents ())
		{
		}
		public TestableUpdateAllNuGetPackagesInProjectAction (
			FakeSolutionManager solutionManager,
			FakeDotNetProject project)
			: this (
				solutionManager,
				project,
				new FakeNuGetProjectContext (),
				new FakeNuGetPackageManager (),
				new FakePackageRestoreManager (),
				new PackageManagementEvents ())
		{
		}
		public TestableUninstallNuGetPackageAction (
			FakeSolutionManager solutionManager,
			FakeDotNetProject dotNetProject,
			FakeNuGetProjectContext projectContext,
			FakeNuGetPackageManager packageManager,
			PackageManagementEvents packageManagementEvents)
			: base (
				solutionManager,
				dotNetProject,
				projectContext,
				packageManager,
				packageManagementEvents)
		{
			ProjectContext = projectContext;
			PackageManager = packageManager;

			PackageManagementEvents = packageManagementEvents;
		}
		public TestableUpdateAllNuGetPackagesInProjectAction (
			FakeSolutionManager solutionManager,
			FakeDotNetProject dotNetProject,
			FakeNuGetProjectContext projectContext,
			FakeNuGetPackageManager packageManager,
			FakePackageRestoreManager restoreManager,
			PackageManagementEvents packageManagementEvents)
			: base (
				solutionManager,
				dotNetProject,
				projectContext,
				packageManager,
				restoreManager,
				packageManagementEvents)
		{
			ProjectContext = projectContext;
			PackageManager = packageManager;
			RestoreManager = restoreManager;

			PackageManagementEvents = packageManagementEvents;
		}
 void CreateNode()
 {
     updatedPackagesInSolution = new FakeUpdatedPackagesInSolution();
     project            = new FakeDotNetProject();
     packagesFolderNode = new TestableProjectPackagesFolderNode(project, updatedPackagesInSolution);
 }
 void CreateProject(string frameworkVersion)
 {
     project = new FakeDotNetProject();
     project.TargetFrameworkMoniker = new TargetFrameworkMoniker(frameworkVersion);
 }
 void RaiseProjectReloadedEvent(FakeDotNetProject oldProject, FakeDotNetProject newProject)
 {
     projectService.RaiseProjectReloadedEvent(oldProject, newProject);
 }
예제 #8
0
 FakeNuGetProject AddNuGetProjectToSolution()
 {
     dotNetProject = new FakeDotNetProject();
     solution.Projects.Add(dotNetProject);
     return(taskRunner.AddNuGetProject(dotNetProject));
 }
예제 #9
0
 void CreateTestProject(string fileName)
 {
     project = new FakeDotNetProject(fileName);
 }
예제 #10
0
 void CreateTestWebSiteProject()
 {
     project = ProjectHelper.CreateTestWebSiteProject();
 }
예제 #11
0
 void CreateTestWebApplicationProject()
 {
     project = ProjectHelper.CreateTestWebApplicationProject();
 }
예제 #12
0
 void CreateTestProject()
 {
     project = new FakeDotNetProject();
 }
예제 #13
0
 void CreateProject(string fileName = @"d:\projects\MyProject\MyProject.csproj")
 {
     fileName           = fileName.ToNativePath();
     project            = new FakeDotNetProject(fileName);
     project.SaveAction = SaveProject;
 }
        void AddProjectToSolution()
        {
            FakeDotNetProject project = ProjectHelper.CreateTestProject();

            fakeSolution.FakeDotNetProjects.Add(project);
        }
 void CreateProject()
 {
     project      = new FakeDotNetProject(@"d:\projects\MyProject\MyProject.csproj".ToNativePath());
     nugetProject = new FakeNuGetProject(project);
 }