Esempio n. 1
0
 public VsTemplateWizard(IVsPackageInstaller installer, IVsWebsiteHandler websiteHandler, IVsPackageInstallerServices packageServices, IOutputConsoleProvider consoleProvider)
 {
     _installer = installer;
     _websiteHandler = websiteHandler;
     _packageServices = packageServices;
     _consoleProvider = consoleProvider;
 }
Esempio n. 2
0
 public VsTemplateWizard(IVsPackageInstaller installer, IVsWebsiteHandler websiteHandler, IVsPackageInstallerServices packageServices, IOutputConsoleProvider consoleProvider)
 {
     _installer       = installer;
     _websiteHandler  = websiteHandler;
     _packageServices = packageServices;
     _consoleProvider = consoleProvider;
 }
 public PreinstalledPackageInstaller(
     IVsWebsiteHandler websiteHandler,
     IVsPackageInstallerServices packageServices,
     IVsCommonOperations vsCommonOperations,
     ISolutionManager solutionManager)
 {
     _websiteHandler = websiteHandler;
     _packageServices = packageServices;
     _vsCommonOperations = vsCommonOperations;
     _solutionManager = solutionManager;
 }
Esempio n. 4
0
 public PreinstalledPackageInstaller(
     IVsWebsiteHandler websiteHandler,
     IVsPackageInstallerServices packageServices,
     IVsCommonOperations vsCommonOperations,
     ISolutionManager solutionManager)
 {
     _websiteHandler     = websiteHandler;
     _packageServices    = packageServices;
     _vsCommonOperations = vsCommonOperations;
     _solutionManager    = solutionManager;
 }
Esempio n. 5
0
 /// <summary>
 /// Creates an instance of the package installer for unit testing of extension-based preinstalled packages.  This should only be used for unit tests.
 /// </summary>
 /// <param name="vsExtensionManager">A mock extension manager instance (used for unit tests).</param>
 internal VsPackageInstaller(IVsPackageManagerFactory packageManagerFactory,
                             IScriptExecutor scriptExecutor,
                             IPackageRepositoryFactory repositoryFactory,
                             IOutputConsoleProvider consoleProvider,
                             IVsCommonOperations vsCommonOperations,
                             ISolutionManager solutionManager,
                             IVsWebsiteHandler websiteHandler,
                             IVsPackageInstallerServices packageServices,
                             object vsExtensionManager)
     : this(packageManagerFactory, scriptExecutor, repositoryFactory, consoleProvider, vsCommonOperations, solutionManager, websiteHandler, packageServices)
 {
     _vsExtensionManager = vsExtensionManager;
 }
Esempio n. 6
0
 /// <summary>
 /// Creates an instance of the package installer for unit testing of registry-based preinstalled packages. This should only be used for unit tests.
 /// </summary>
 /// <param name="registryKeys">The optional list of parent registry keys to look in (used for unit tests).</param>
 internal VsPackageInstaller(IVsPackageManagerFactory packageManagerFactory,
                             IScriptExecutor scriptExecutor,
                             IPackageRepositoryFactory repositoryFactory,
                             IOutputConsoleProvider consoleProvider,
                             IVsCommonOperations vsCommonOperations,
                             ISolutionManager solutionManager,
                             IVsWebsiteHandler websiteHandler,
                             IVsPackageInstallerServices packageServices,
                             IEnumerable<IRegistryKey> registryKeys)
     : this(packageManagerFactory, scriptExecutor, repositoryFactory, consoleProvider, vsCommonOperations, solutionManager, websiteHandler, packageServices)
 {
     _registryKeys = registryKeys;
 }
Esempio n. 7
0
 /// <summary>
 /// Creates an instance of the package installer for unit testing of extension-based preinstalled packages.  This should only be used for unit tests.
 /// </summary>
 /// <param name="vsExtensionManager">A mock extension manager instance (used for unit tests).</param>
 internal VsPackageInstaller(IVsPackageManagerFactory packageManagerFactory,
                             IScriptExecutor scriptExecutor,
                             IPackageRepositoryFactory repositoryFactory,
                             IOutputConsoleProvider consoleProvider,
                             IVsCommonOperations vsCommonOperations,
                             ISolutionManager solutionManager,
                             IVsWebsiteHandler websiteHandler,
                             IVsPackageInstallerServices packageServices,
                             object vsExtensionManager)
     : this(packageManagerFactory, scriptExecutor, repositoryFactory, consoleProvider, vsCommonOperations, solutionManager, websiteHandler, packageServices)
 {
     _vsExtensionManager = vsExtensionManager;
 }
Esempio n. 8
0
 /// <summary>
 /// Creates an instance of the package installer for unit testing of registry-based preinstalled packages. This should only be used for unit tests.
 /// </summary>
 /// <param name="registryKeys">The optional list of parent registry keys to look in (used for unit tests).</param>
 internal VsPackageInstaller(IVsPackageManagerFactory packageManagerFactory,
                             IScriptExecutor scriptExecutor,
                             IPackageRepositoryFactory repositoryFactory,
                             IOutputConsoleProvider consoleProvider,
                             IVsCommonOperations vsCommonOperations,
                             ISolutionManager solutionManager,
                             IVsWebsiteHandler websiteHandler,
                             IVsPackageInstallerServices packageServices,
                             IEnumerable <IRegistryKey> registryKeys)
     : this(packageManagerFactory, scriptExecutor, repositoryFactory, consoleProvider, vsCommonOperations, solutionManager, websiteHandler, packageServices)
 {
     _registryKeys = registryKeys;
 }
Esempio n. 9
0
 public VsTemplateWizard(
     IVsPackageInstaller installer,
     IVsWebsiteHandler websiteHandler,
     IVsPackageInstallerServices packageServices,
     IOutputConsoleProvider consoleProvider,
     IVsCommonOperations vsCommonOperations,
     ISolutionManager solutionManager)
 {
     _installer = installer;
     _websiteHandler = websiteHandler;
     _packageServices = packageServices;
     _consoleProvider = consoleProvider;
     _vsCommonOperations = vsCommonOperations;
     _solutionManager = solutionManager;
 }
Esempio n. 10
0
 public VsTemplateWizard(
     IVsPackageInstaller installer,
     IVsWebsiteHandler websiteHandler,
     IVsPackageInstallerServices packageServices,
     IOutputConsoleProvider consoleProvider,
     IVsCommonOperations vsCommonOperations,
     ISolutionManager solutionManager)
 {
     _installer          = installer;
     _websiteHandler     = websiteHandler;
     _packageServices    = packageServices;
     _consoleProvider    = consoleProvider;
     _vsCommonOperations = vsCommonOperations;
     _solutionManager    = solutionManager;
 }
Esempio n. 11
0
 public VsPackageInstaller(IVsPackageManagerFactory packageManagerFactory,
                           IScriptExecutor scriptExecutor,
                           IPackageRepositoryFactory repositoryFactory,
                           IOutputConsoleProvider consoleProvider,
                           IVsCommonOperations vsCommonOperations,
                           ISolutionManager solutionManager,
                           IVsWebsiteHandler websiteHandler,
                           IVsPackageInstallerServices packageServices)
 {
     _packageManagerFactory = packageManagerFactory;
     _scriptExecutor = scriptExecutor;
     _repositoryFactory = repositoryFactory;
     _consoleProvider = consoleProvider;
     _vsCommonOperations = vsCommonOperations;
     _solutionManager = solutionManager;
     _websiteHandler = websiteHandler;
     _packageServices = packageServices;
 }
Esempio n. 12
0
 public VsPackageInstaller(IVsPackageManagerFactory packageManagerFactory,
                           IScriptExecutor scriptExecutor,
                           IPackageRepositoryFactory repositoryFactory,
                           IOutputConsoleProvider consoleProvider,
                           IVsCommonOperations vsCommonOperations,
                           ISolutionManager solutionManager,
                           IVsWebsiteHandler websiteHandler,
                           IVsPackageInstallerServices packageServices)
 {
     _packageManagerFactory = packageManagerFactory;
     _scriptExecutor        = scriptExecutor;
     _repositoryFactory     = repositoryFactory;
     _consoleProvider       = consoleProvider;
     _vsCommonOperations    = vsCommonOperations;
     _solutionManager       = solutionManager;
     _websiteHandler        = websiteHandler;
     _packageServices       = packageServices;
 }
 public TestableVsTemplateWizard(
     IVsPackageInstaller installer = null,
     Func<string, XDocument> loadDocumentCallback = null,
     IVsWebsiteHandler websiteHandler = null,
     IVsPackageInstallerServices packageServices = null,
     IOutputConsoleProvider consoleProvider = null)
     : base(
         installer, 
         websiteHandler, 
         packageServices ?? new Mock<IVsPackageInstallerServices>().Object, 
         consoleProvider ?? new Mock<IOutputConsoleProvider>().Object,
         new Mock<IVsCommonOperations>().Object,
         new Mock<ISolutionManager>().Object)
 {
     ErrorMessages = new List<string>();
     _loadDocumentCallback = loadDocumentCallback ?? (path => null);
 }