// Have a single place to get a PowerShellManager for testing. // This is to guarantee that the well known paths are setup before calling the constructor of PowerShellManager. internal static PowerShellManager NewTestPowerShellManager(ConsoleLogger logger) { return(new PowerShellManager(logger)); }
// Have a single place to get a PowerShellManager for testing. // This is to guarantee that the well known paths are setup before calling the constructor of PowerShellManager. internal static PowerShellManager NewTestPowerShellManager(ConsoleLogger logger, PowerShell pwsh = null) { return(pwsh != null ? new PowerShellManager(logger, pwsh) : new PowerShellManager(logger, id: 2)); }