Example #1
0
        public async override Task <StorageFile> CreateFolderAsync(string folderName, StorageFile destFolder, CancellationToken token)
        {
            var ret = new MockStorageFile(this, folderName);

            files.Add(ret.Id, ret);
            return(ret);
        }
Example #2
0
 public void AddFile(MockStorageFile file)
 {
     files.Add(file.Id, file);
 }
Example #3
0
 public override async Task<StorageFile> GetFileAsync(XElement xml, CancellationToken token)
 {
     var ret = new MockStorageFile(this, xml.Attribute("name").Value);
     return ret;
 }
Example #4
0
 public async override Task<StorageFile> CreateFolderAsync(string folderName, StorageFile destFolder, CancellationToken token)
 {
     var ret = new MockStorageFile(this, folderName);
     files.Add(ret.Id, ret);
     return ret;
 }
Example #5
0
 public void AddFile(MockStorageFile file)
 {
     files.Add(file.Id, file);
 }
Example #6
0
        public override async Task <StorageFile> GetFileAsync(XElement xml, CancellationToken token)
        {
            var ret = new MockStorageFile(this, xml.Attribute("name").Value);

            return(ret);
        }