public void Setup() { this.imeDownloadTestPath = new UpdateFileSystemService().ImeDownloadPath.FullName; this.commandRunner = new Mock <IProcessRunnerService>(); this.commandRunner.Setup(x => x.RunAsAdmin(It.IsAny <string>())); this.viewInvoker = new Mock <IViewInvokerService>(); this.viewInvoker.Setup(x => x.ShowDialog(It.IsAny <UpdateDownloaderInstaller>())); this.viewInvoker.Setup(x => x.ShowMessageBox( It.IsAny <string>(), It.IsAny <string>(), MessageBoxButton.YesNo, MessageBoxImage.Information)).Returns(MessageBoxResult.No); this.downloadPath = Path.Combine(PluginUtilities.GetAppDataPath(), "DownloadCache", "plugins"); if (!Directory.Exists(this.downloadPath)) { Directory.CreateDirectory(this.downloadPath); } }