using System; using System.Collections.ObjectModel; using System.Threading.Tasks; using ModernKeePass.Interfaces; using Windows.Storage; using System.Collections.Generic; namespace ModernKeePassApp.Test.Mock { class RecentServiceMock : IRecentService { private Dictionary _recentItems = new Dictionary(); public int EntryCount => 0; public void Add(IStorageItem file, string metadata) { _recentItems.Add(metadata, file); } public void ClearAll() { _recentItems.Clear(); } public ObservableCollection GetAllFiles(bool removeIfNonExistant = true) { throw new NotImplementedException(); } public Task GetFileAsync(string token) { return Task.Run(() => _recentItems[token]); } } }