Revision d78d765c trunk/Pithos.Core.Test/NetworkAgentTest.cs
b/trunk/Pithos.Core.Test/NetworkAgentTest.cs | ||
---|---|---|
55 | 55 |
var cloudFile = new ObjectInfo {Account = account, Container = "pithos"}; |
56 | 56 |
var fileInfo = new FileInfo(filePath); |
57 | 57 |
|
58 |
agent.UploadWithHashMap(accountInfo,cloudFile,fileInfo,fileName,treeHash); |
|
58 |
var uploader = new Uploader(); |
|
59 |
uploader.UploadWithHashMap(accountInfo,cloudFile,fileInfo,fileName,treeHash); |
|
59 | 60 |
|
60 | 61 |
var newHash = await client.GetHashMap(null, FolderConstants.PithosContainer, fileName); |
61 | 62 |
|
... | ... | |
91 | 92 |
var cloudFile = new ObjectInfo {Account = account, Container = FolderConstants.PithosContainer}; |
92 | 93 |
|
93 | 94 |
var newHash = client.GetHashMap(null, FolderConstants.PithosContainer, fileName).Result; |
94 |
agent.DownloadWithBlocks(accountInfo, client, cloudFile, new Uri(fileName, UriKind.Relative), filePath, newHash) |
|
95 |
var downloader = new Downloader(); |
|
96 |
downloader.DownloadWithBlocks(accountInfo, client, cloudFile, new Uri(fileName, UriKind.Relative), filePath, newHash) |
|
95 | 97 |
.Wait(); |
96 | 98 |
|
97 | 99 |
Assert.IsTrue(File.Exists(filePath)); |
Also available in: Unified diff