Esempio n. 1
0
 public override void Context()
 {
     FileSystem = new DotNetFileSystem();
     ContextPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "infrastructure", "filesystem");
     DestinationPath = Path.Combine(ContextPath, "context");
     TheTestFile = Path.Combine(ContextPath, "Slipsum.txt");
     TestDirectory = Path.Combine(DestinationPath, "TestDirectory");
 }
 public override void Context()
 {
     FileSystem = new DotNetFileSystem();
 }
Esempio n. 3
0
 public override void Context()
 {
     base.Context();
     var fileToSetReadOnly = Path.Combine(Scenario.get_top_level(), "lib", Configuration.PackageNames, "tools", "chocolateyInstall.ps1");
     var fileSystem = new DotNetFileSystem();
     fileSystem.ensure_file_attribute_set(fileToSetReadOnly, FileAttributes.ReadOnly);
 }
 public override void Context()
 {
     FileSystem = new DotNetFileSystem();
     Provider = new CrytpoHashProvider(FileSystem,CryptoHashProviderType.Md5);
     ContextDirectory = FileSystem.combine_paths(FileSystem.get_directory_name(FileSystem.get_current_assembly_path()), "context");
 }