Exemple #1
0
 public void DownloadFileTest()
 {
     AWSS3Helper awss3Helper = new AWSS3Helper (regionEndPoint, myAccessKey, mySecretKey);
     // TODO: Put the Path of the file
     string dataname = "Excel Test File";
     string filepath = @"";
     Assert.True (awss3Helper.FileDownload (bucketname, dataname,filepath));
 }
Exemple #2
0
 public void DataItemExistTest()
 {
     AWSS3Helper awss3Helper = new AWSS3Helper (regionEndPoint, myAccessKey, mySecretKey);
     string dataname = "Excel Test File";
     Assert.False (awss3Helper.DataItemExists (bucketname, dataname));
     dataname = "First Try";
     Assert.True (awss3Helper.DataItemExists (bucketname, dataname));
 }
Exemple #3
0
        public void DataListItemTest()
        {
            AWSS3Helper awss3Helper = new AWSS3Helper (regionEndPoint, myAccessKey, mySecretKey);
            string datanameExcel = "Excel Test File";
            string datanameString = "First Try";
            List<string> dataitems = new List<string>();

            //awss3Helper.ListDataItems (bucketname, dataitems, NotificationCallback);

            awss3Helper.ListDataItems (bucketname, dataitems, delegate (int count, out bool shouldAbort) { shouldAbort = false; });

            Assert.True (dataitems.ElementAt (0).Equals (datanameExcel));
            Assert.True (dataitems.ElementAt (1).Equals (datanameString));
        }
Exemple #4
0
 public void LoadStringTest()
 {
     AWSS3Helper awss3Helper = new AWSS3Helper (regionEndPoint, myAccessKey, mySecretKey);
     string dataname = "First Try";
     string datavalue = "";
     Assert.True (awss3Helper.LoadString(bucketname, dataname, out datavalue));
 }
Exemple #5
0
 public void DeleteDataTest()
 {
     AWSS3Helper awss3Helper = new AWSS3Helper (regionEndPoint, myAccessKey, mySecretKey);
     string dataname = "Excel Test File";;
     Assert.True (awss3Helper.DeleteDataItem (bucketname, dataname));
 }