示例#1
0
        public void Init()
        {
            var tempName      = "OmegaGraf-" + Guid.NewGuid().ToString();
            var tempDirectory = Path.Combine(Path.GetTempPath(), tempName);

            Directory.CreateDirectory(tempDirectory);

            Chmod(tempDirectory, P0777);

            AppPath.SetRoot(tempDirectory);

            Globals.Config.Overwrite = true;

            var docker = new Docker();

            var network = docker.CreateNetwork().Result;

            if (network == null)
            {
                TestContext.Out.WriteLine("Network already exists.");
            }
        }