void CreateScript()
        {
            fakeFileSystem = new FakeFileSystem();
            fakeFileSystem.FileExistsReturnValue = true;
            fakeFileSystem.DirectoryExistsReturnValue = true;
            scriptFileName = new PackageUninstallScriptFileName(fakeFileSystem);

            fakeSession = new FakePackageScriptSession();
            fakePackage = new FakePackage();

            fakeProject = new FakePackageManagementProject();

            script = new PackageUninstallScript(fakePackage, scriptFileName);
            script.Project = fakeProject;
        }
Ejemplo n.º 2
0
        public IPackageScript CreatePackageUninstallScript(IPackage package, string packageInstallDirectory)
        {
            var scriptFileName = new PackageUninstallScriptFileName(packageInstallDirectory);

            return(new PackageUninstallScript(package, scriptFileName));
        }
		void CreateFileNameWithFakeFileSystem()
		{
			scriptFileName = new PackageUninstallScriptFileName(fakeFileSystem);
		}
		void CreateFileName(string installPath)
		{
			scriptFileName = new PackageUninstallScriptFileName(installPath);
		}
Ejemplo n.º 5
0
 public IPackageScript CreatePackageUninstallScript(IPackage package, string packageInstallDirectory)
 {
     var scriptFileName = new PackageUninstallScriptFileName(packageInstallDirectory);
     return new PackageUninstallScript(package, scriptFileName);
 }