public override void Execute()
        {
            var managedClient = new ipfsManagedClient();

            managedClient.IsVerbose = true;
            managedClient.Init();

            var dataDir = managedClient.DataDirectory;

            var sourceDir = Path.GetFullPath("source");

            Directory.CreateDirectory(sourceDir);

            var sourceFile = Path.Combine(sourceDir, "file.txt");

            File.WriteAllText(sourceFile, "Hello world");

            var subFolderName = "TestSubFolder";

            managedClient.AddFile(sourceFile, subFolderName);

            var importedFolderPath = Path.Combine(dataDir, subFolderName);

            var importedFilePath = Path.Combine(importedFolderPath, Path.GetFileName(sourceFile));

            Assert.IsTrue(File.Exists(importedFilePath));
        }
        public override void Execute()
        {
            var managedClient = new ipfsManagedClient ();
            managedClient.IsVerbose = true;
            managedClient.Init ();

            var dataDir = managedClient.DataDirectory;

            var sourceDir = Path.GetFullPath ("source");

            Directory.CreateDirectory (sourceDir);

            var sourceFile = Path.Combine (sourceDir, "file.txt");

            File.WriteAllText (sourceFile, "Hello world");

            var subFolderName = "TestSubFolder";
            managedClient.AddFile (sourceFile, subFolderName);

            var importedFolderPath = Path.Combine (dataDir, subFolderName);

            var importedFilePath = Path.Combine (importedFolderPath, Path.GetFileName (sourceFile));

            Assert.IsTrue (File.Exists (importedFilePath));
        }
        public override void Execute()
        {
            var managedClient = new ipfsManagedClient ();
            managedClient.IsVerbose = true;
            managedClient.Init ();

            var dataDir = managedClient.DataDirectory;

            var sourceDir = Path.GetFullPath ("source");

            Directory.CreateDirectory (sourceDir);

            var sourceFile = Path.Combine (sourceDir, "file.txt");

            var contents = "Hello world";

            File.WriteAllText (sourceFile, contents);

            var subFolderName = "TestSubFolder";

            var testDirectory = Environment.CurrentDirectory;

            Directory.SetCurrentDirectory (sourceDir);

            var hash = managedClient.AddFile (sourceFile, subFolderName);

            Directory.SetCurrentDirectory (testDirectory);

            var peerId = managedClient.Publish (hash);

            var relativeFilePath = subFolderName + "/" + Path.GetFileName (sourceFile);

            var fileChecker = new ipfsFileChecker ();
            fileChecker.CheckTestFile ("ipns", peerId, relativeFilePath, contents);
        }
        public override void Execute()
        {
            var managedClient = new ipfsManagedClient();

            managedClient.IsVerbose = true;
            managedClient.Init();

            var dataDir = managedClient.DataDirectory;

            var sourceDir = Path.GetFullPath("source");

            Directory.CreateDirectory(sourceDir);

            var sourceFile = Path.Combine(sourceDir, "file.txt");

            var contents = "Hello world";

            File.WriteAllText(sourceFile, contents);

            var subFolderName = "TestSubFolder";

            var testDirectory = Environment.CurrentDirectory;

            Directory.SetCurrentDirectory(sourceDir);

            var hash = managedClient.AddFile(sourceFile, subFolderName);

            Directory.SetCurrentDirectory(testDirectory);

            var peerId = managedClient.Publish(hash);

            var relativeFilePath = subFolderName + "/" + Path.GetFileName(sourceFile);

            var fileChecker = new ipfsFileChecker();

            fileChecker.CheckTestFile("ipns", peerId, relativeFilePath, contents);
        }