Azi.Amazon.CloudDrive.Tests.AmazonTestsBase.AmazonTestsBase C# (CSharp) Method

AmazonTestsBase() protected method

protected AmazonTestsBase ( ) : System
return System
        protected AmazonTestsBase()
        {
            Amazon = Authenticate().Result;
            var rootId = Amazon.Nodes.GetRoot().Result.id;
            var TestDir = TestDirBase + new Random().Next();
            var node = Amazon.Nodes.GetChild(rootId, TestDir).Result;
            if (node == null)
            {
                node = Amazon.Nodes.CreateFolder(rootId, TestDir).Result;
            }
            TestDirId = node.id;
        }