void CreateScript()
		{
			fakeFileSystem = new FakeFileSystem();
			fakeFileSystem.FileExistsReturnValue = true;
			fakeFileSystem.DirectoryExistsReturnValue = true;
			scriptFileName = new PackageInstallScriptFileName(fakeFileSystem);
			
			fakeSession = new FakePackageScriptSession();
			fakePackage = new FakePackage();
			
			script = new PackageInstallScript(fakePackage, scriptFileName);
		}
示例#2
0
        public IPackageScript CreatePackageInstallScript(IPackage package, string packageInstallDirectory)
        {
            var scriptFileName = new PackageInstallScriptFileName(packageInstallDirectory);

            return(new PackageInstallScript(package, scriptFileName));
        }
		void CreateFileNameWithFakeFileSystem()
		{
			scriptFileName = new PackageInstallScriptFileName(fakeFileSystem);
		}
		void CreateFileName(string installPath)
		{
			scriptFileName = new PackageInstallScriptFileName(installPath);
		}
 public IPackageScript CreatePackageInstallScript(IPackage package, string packageInstallDirectory)
 {
     var scriptFileName = new PackageInstallScriptFileName(packageInstallDirectory);
     return new PackageInstallScript(package, scriptFileName);
 }