public void BeforeEachTest() { _actionRegistry = new ActionRegistry(); _actionRegistry.RegisterAction <OpenAction>(); _actionRegistry.RegisterAction <ContainingFolderConverter>(); _actionRegistry.RegisterAction <GoogleAction>(); }
public MainViewModel() { _actionRegistry = new ActionRegistry(); _actionRegistry.RegisterIndexer(() => new ControlPanelIndexer().GetControlPanelItems()); _actionRegistry.RegisterIndexer(() => new WindowsStoreAppIndexer().GetWindowsStoreApps()); _actionRegistry.RegisterAction <OpenAction>(); _actionRegistry.RegisterAction <OpenAsAdminAction>(); _actionRegistry.RegisterAction <ContainingFolderConverter>(); _actionRegistry.RegisterAction <WindowsStoreAppOpenAction>(); var frecencyPath = CatapultPaths.FrecencyPath; _frecencyStorage = new FrecencyStorage(frecencyPath); _actionRegistry.RegisterAction <KillProcessAction>(); _actionRegistry.RegisterAction <OpenLastLogAction>(); _actionRegistry.RegisterAction <OpenLogFolderAction>(); _actionRegistry.RegisterAction <OpenConfigAction>(); _actionRegistry.RegisterAction <EnableRunAtStartUpAction>(); _actionRegistry.RegisterAction <DisableRunAtStartUpAction>(); _actionRegistry.RegisterAction <ReindexFilesAction>(); _actionRegistry.RegisterAction <CheckForUpdatesAction>(); CheckForUpdatesAction.UpdateCheckAction = SquirrelIntegration.Instance.CheckForUpdates; SquirrelIntegration.OnUpdateFound += version => { _actionRegistry.RegisterAction <UpgradeCatapultAction>(); UpgradeCatapultAction.UpgradeAction = SquirrelIntegration.Instance.UpgradeToNewVersion; }; _actionRegistry.RegisterAction <GoogleAction>(); _actionRegistry.RegisterAction <WikipediaAction>(); _actionRegistry.RegisterAction <ClipboardHistoryAction>(); _actionRegistry.RegisterAction <UnderscorizeClipboardString>(); _actionRegistry.RegisterAction <TripleBacktickClipboardString>(); _actionRegistry.RegisterAction <WindowsSleepAction>(); _actionRegistry.RegisterAction <WindowsRestartAction>(); _actionRegistry.RegisterAction <WindowsShutdownAction>(); _actionRegistry.RegisterAction <WindowsShutdownForceAction>(); _actionRegistry.RegisterAction <WindowsLockComputerAction>(); _actionRegistry.RegisterAction <WindowsLogOffAction>(); FileIconResolver.ResolverFunc = WindowsFileIconResolver.Resolve; Reset(); StartIntentService(Dispatcher.CurrentDispatcher); StackPushed += MainViewModel_StackPushed; }