public void Should_Bulk_Delete_All_Objects() { var provider = new CloudFilesProvider(_testIdentity); provider.BulkDelete(provider.ListObjects(containerName2).Select(o => string.Format("{0}/{1}", containerName2, o.Name))); var objects = provider.ListObjects(containerName2).ToArray(); Assert.AreEqual(0, objects.Count()); }
public void Should_Bulk_Delete_All_Objects() { var provider = new CloudFilesProvider(_testIdentity); provider.LargeFileBatchThreshold = 81920; provider.BulkDelete(provider.ListObjects(containerName2).Select(o => new KeyValuePair <string, string>(containerName2, o.Name))); var objects = provider.ListObjects(containerName2).ToArray(); Assert.AreEqual(0, objects.Count()); }