예제 #1
0
        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;
 }
예제 #5
0
 public SubscriptionManager(IShellRunner shellRunner)
 {
     this.shellRunner = shellRunner;
 }
예제 #6
0
 public AppInsightsManager(IShellRunner shellRunner)
 {
     this.shellRunner = shellRunner;
 }
예제 #7
0
 public StorageManager(IShellRunner shellRunner)
 {
     this.shellRunner = shellRunner;
 }
예제 #8
0
 public VmManager(IShellRunner shellRunner)
 {
     this.shellRunner = shellRunner;
 }
예제 #9
0
 public KeyVaultManager(IShellRunner shellRunner)
 {
     this.shellRunner = shellRunner;
 }
 public SqlServerManager(IShellRunner shellRunner)
 {
     this.shellRunner = shellRunner;
 }
예제 #11
0
 public MercurialSourceControl(IShellRunner shellRunner, IEnvironmentVariable environmentVariable)
 {
     this.shellRunner = shellRunner;
     hgDirectory      = environmentVariable.GetDirectoryFor("hg.exe");
 }
예제 #12
0
 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;
 }