Fixing Azure unit tests

This commit is contained in:
Sebastien Ros
2013-09-06 15:45:21 -07:00
parent ccd8020291
commit 9bc2d6dfd5
6 changed files with 29 additions and 19 deletions
@@ -139,7 +139,7 @@ namespace Orchard.Azure.Services.FileSystems {
prefix += "/";
}
return BlobClient.ListBlobs(prefix, true)
return BlobClient.ListBlobs(prefix)
.OfType<CloudBlockBlob>()
.Where(blobItem => !blobItem.Uri.AbsoluteUri.EndsWith(FolderEntry))
.Select(blobItem => new AzureBlobFileStorage(blobItem, _absoluteRoot))
@@ -264,6 +264,7 @@ namespace Orchard.Azure.Services.FileSystems {
var blob = Container.GetBlockBlobReference(String.Concat(_root, path));
var newBlob = Container.GetBlockBlobReference(String.Concat(_root, newPath));
newBlob.StartCopyFromBlob(blob);
blob.Delete();
}
public IStorageFile CreateFile(string path) {