コード例 #1
0
        public Task <IEnumerable <IFile> > GetFilesAsync()
        {
            IEnumerable <KeyValuePair <string, string> > filesInDir
                = _filesContainer.Where(file => file.Key.StartsWith(Name));

            return(Task.FromResult <IEnumerable <IFile> >(filesInDir.Select(file => new FileMock(file.Key, _filesContainer))));
        }