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)); }
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)); }
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)); }
public void LoadStringTest() { AWSS3Helper awss3Helper = new AWSS3Helper (regionEndPoint, myAccessKey, mySecretKey); string dataname = "First Try"; string datavalue = ""; Assert.True (awss3Helper.LoadString(bucketname, dataname, out datavalue)); }
public void DeleteDataTest() { AWSS3Helper awss3Helper = new AWSS3Helper (regionEndPoint, myAccessKey, mySecretKey); string dataname = "Excel Test File";; Assert.True (awss3Helper.DeleteDataItem (bucketname, dataname)); }