public PathHistoryManagerTests()
        {
            var mock = new Mock <IFileSystem>();

            mock.Setup(x => x.ComparePaths(It.IsAny <string>(), It.IsAny <string>()))
            .Returns <string, string>((s, s1) => s.Equals(s1));

            _pathHistoryManager = new PathHistoryManager(mock.Object);
        }
Example #2
0
        public void Initialize(FileExplorerViewModel fileExplorerViewModel)
        {
            FileExplorerViewModel              = fileExplorerViewModel;
            FileExplorerViewModel.PathChanged += FileExplorerViewModelOnPathChanged;
            PathHistoryManager = new PathHistoryManager(fileExplorerViewModel.FileSystem);
            PathHistoryManager.PropertyChanged += PathHistoryManagerOnPropertyChanged;

            fileExplorerViewModel.EntriesViewModel.Filters.Add(FilterItems);
            fileExplorerViewModel.EntriesViewModel.LiveFilteringProperties.Add(nameof(EntryViewModel.Label));
        }