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;
        }
Beispiel #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);
		}
 public IPackageScript CreatePackageUninstallScript(IPackage package, string packageInstallDirectory)
 {
     var scriptFileName = new PackageUninstallScriptFileName(packageInstallDirectory);
     return new PackageUninstallScript(package, scriptFileName);
 }