Esempio n. 1
0
 public void DeleteObject(DeleteObjectRequest request)
 {
     using (var response = _netLayer.Invoke(request))
     {
         ResponseParseUtilities.HandleStatusCode(response, HttpStatusCode.NoContent);
     }
 }
Esempio n. 2
0
 public void runDeleteObject(string bucketname, string objectName)
 {
     var request = new Ds3.Calls.DeleteObjectRequest(bucketname, objectName);
     _client.DeleteObject(request);
 }
        //  [Test] *** will fail in mono
        public void Test0920DeleteObjectWithPrefix()
        {
            var antefolder = listBucketObjects();
               int antefoldercount = antefolder.Count();
               // delete the dirst book
               string book = BOOKS.First<string>();
               var request = new Ds3.Calls.DeleteObjectRequest(TESTBUCKET, PREFIX + book);
               _client.DeleteObject(request);

               // one less ?
               var postfolder = listBucketObjects();
               int postfoldercount = postfolder.Count();
               Assert.AreEqual(antefoldercount - postfoldercount, 1);
        }
 public void Test0915DeleteDeletedObject()
 {
     // delete the first book, again
        string book = BOOKS.First<string>();
        var request = new Ds3.Calls.DeleteObjectRequest(TESTBUCKET, string.Empty + book);
        _client.DeleteObject(request);
 }
        //  [Test] *** will fail in mono
        public void Test0910DeleteObject()
        {
            var antefolder = listBucketObjects();
               int antefoldercount = antefolder.Count();
               // delete the first book
               string book = BOOKS.First<string>();
               var request = new Ds3.Calls.DeleteObjectRequest(TESTBUCKET, string.Empty + book);
               string debugme = request.ObjectName;
               Console.WriteLine(debugme);
               _client.DeleteObject(request);

               // one less ?
               var postfolder = listBucketObjects();
               int postfoldercount = postfolder.Count();
               Assert.AreEqual(antefoldercount - postfoldercount, 1);
        }
 void DeleteObject(string bucketname, string objectName)
 {
     var request = new DeleteObjectRequest(bucketname, objectName);
     _client.DeleteObject(request);
 }