protected override void Because() { factory = MockRepository.GenerateMock <IProcessFactory>(); factory.Expect(x => x.GetProcess("cmd", "foo", "bar")).Return(new StubProcess()); runner = new CommandLineRunner(factory); runner.RunCommand("cmd", "foo", "bar"); }
protected override void Because() { factory = MockRepository.GenerateMock<IProcessFactory>(); factory.Expect(x => x.GetProcess("cmd", "foo", "bar")).Return(new StubProcess()); runner = new CommandLineRunner(factory); runner.RunCommand("cmd", "foo", "bar"); }
public SshCredsManager(EnvironmentConfiguration config, IKeyVaultManager keyVaultManager, ICredentialLookup credentialLookup, IShellRunner shellRunner, IVmManager vmManager, IPathHelper appFolderFinder, ILogger <SshCredsManager> logger, IOSHandler osHandler, IMachineIpManager machineIpManager) { this.config = config; this.keyVaultManager = keyVaultManager; this.credentialLookup = credentialLookup; this.shellRunner = shellRunner; this.vmManager = vmManager; this.appFolderFinder = appFolderFinder; this.logger = logger; this.osHandler = osHandler; this.machineIpManager = machineIpManager; sshHostLookup = new Lazy <Task <string> >(() => vmManager.GetPublicIp(config.PublicIpName)); sshStateLoad = new Lazy <Task <SshState> >(() => LoadSshState()); }
public ServicePrincipalManager(IShellRunner shellRunner) { this.shellRunner = shellRunner; }
public SubscriptionManager(IShellRunner shellRunner) { this.shellRunner = shellRunner; }
public AppInsightsManager(IShellRunner shellRunner) { this.shellRunner = shellRunner; }
public StorageManager(IShellRunner shellRunner) { this.shellRunner = shellRunner; }
public VmManager(IShellRunner shellRunner) { this.shellRunner = shellRunner; }
public KeyVaultManager(IShellRunner shellRunner) { this.shellRunner = shellRunner; }
public SqlServerManager(IShellRunner shellRunner) { this.shellRunner = shellRunner; }
public MercurialSourceControl(IShellRunner shellRunner, IEnvironmentVariable environmentVariable) { this.shellRunner = shellRunner; hgDirectory = environmentVariable.GetDirectoryFor("hg.exe"); }
public MercurialSourceControl(IShellRunner shellRunner, IEnvironmentVariable environmentVariable) { this.shellRunner = shellRunner; hgDirectory = environmentVariable.GetDirectoryFor("hg.exe"); }
public ArmTemplateManager(IShellRunner shellRunner) { this.shellRunner = shellRunner; }
public AccountManager(IShellRunner powershellCoreRunner) { this.powershellCoreRunner = powershellCoreRunner; }