public PackageUninstaller(IInstallationStatusProvider installationStatusProvider, IPackageConfigurationAccessor packageConfigurationAccessor, IFilesystemAccessor filesystemAccessor, IPowerShellExecutor powerShellExecutor) { if (installationStatusProvider == null) { throw new ArgumentNullException("installationStatusProvider"); } if (packageConfigurationAccessor == null) { throw new ArgumentNullException("packageConfigurationAccessor"); } if (filesystemAccessor == null) { throw new ArgumentNullException("filesystemAccessor"); } if (powerShellExecutor == null) { throw new ArgumentNullException("powerShellExecutor"); } this.installationStatusProvider = installationStatusProvider; this.packageConfigurationAccessor = packageConfigurationAccessor; this.filesystemAccessor = filesystemAccessor; this.powerShellExecutor = powerShellExecutor; }
public CleanupService(IInstallationStatusProvider installationStatusProvider, IFilesystemAccessor filesystemAccessor) { if (installationStatusProvider == null) { throw new ArgumentNullException("installationStatusProvider"); } if (filesystemAccessor == null) { throw new ArgumentNullException("filesystemAccessor"); } this.installationStatusProvider = installationStatusProvider; this.filesystemAccessor = filesystemAccessor; }
public InstallationStatusCommand(IUserInterface userInterface, IInstallationStatusProvider installationStatusProvider) { if (userInterface == null) { throw new ArgumentNullException("userInterface"); } if (installationStatusProvider == null) { throw new ArgumentNullException("installationStatusProvider"); } this.userInterface = userInterface; this.installationStatusProvider = installationStatusProvider; this.Attributes = new CommandAttributes { CommandName = CommandName, AlternativeCommandNames = this.alternativeCommandNames, RequiredArguments = new string[] { }, PositionalArguments = new string[] { }, Description = Resources.InstallationStatusCommand.CommandDescriptionText, Usage = string.Format("{0}", CommandName), Examples = new Dictionary<string, string> { { string.Format("{0}", CommandName), Resources.InstallationStatusCommand.CommandExampleDescription1 }, { string.Format("{0} <{1}>", CommandName, ArgumentNameNugetPackageId), Resources.InstallationStatusCommand.CommandExampleDescription2 } }, ArgumentDescriptions = new Dictionary<string, string> { { ArgumentNameNugetPackageId, Resources.InstallationStatusCommand.ArgumentDescriptionNugetPackageId } } }; this.Arguments = new Dictionary<string, string>(); }