protected override UninstallNuGetPackageAction CreateUninstallAction( IMonoDevelopSolutionManager solutionManager, IDotNetProject project) { UninstallAction = new TestableUninstallNuGetPackageAction( (FakeSolutionManager)solutionManager, (FakeDotNetProject)project); return(UninstallAction); }
void CreateAction (string packageId = "Test") { project = new FakeDotNetProject (@"d:\projects\MyProject\MyProject.csproj"); solutionManager = new FakeSolutionManager (); nugetProject = new FakeNuGetProject (project); solutionManager.NuGetProjects[project] = nugetProject; action = new TestableUninstallNuGetPackageAction ( solutionManager, project); packageManager = action.PackageManager; action.PackageId = packageId; }
protected override UninstallNuGetPackageAction CreateUninstallAction ( IMonoDevelopSolutionManager solutionManager, IDotNetProject project) { UninstallAction = new TestableUninstallNuGetPackageAction ( (FakeSolutionManager)solutionManager, (FakeDotNetProject)project); return UninstallAction; }
TestableUninstallNuGetPackageAction AddUninstallAction () { var action = new TestableUninstallNuGetPackageAction ( new FakeSolutionManager (), new FakeDotNetProject ()); action.PackageId = "Test"; actions.Add (action); return action; }