Exemplo n.º 1
0
        public TestCommandContext()
        {
            Streams           = new TestStandardStreams();
            Terminal          = new TestTerminal();
            SessionManager    = new TestSessionManager();
            Trace             = new NullTrace();
            FileSystem        = new TestFileSystem();
            CredentialStore   = new TestCredentialStore();
            HttpClientFactory = new TestHttpClientFactory();
            Git           = new TestGit();
            Environment   = new TestEnvironment();
            SystemPrompts = new TestSystemPrompts();

            Settings = new TestSettings {
                Environment = Environment, GitConfiguration = Git.GlobalConfiguration
            };
        }
        public TestCommandContext()
        {
            AppPath = PlatformUtils.IsWindows()
                ? @"C:\Program Files\Git Credential Manager Core\git-credential-manager-core.exe"
                : "/usr/local/bin/git-credential-manager-core";

            Streams           = new TestStandardStreams();
            Terminal          = new TestTerminal();
            SessionManager    = new TestSessionManager();
            Trace             = new NullTrace();
            FileSystem        = new TestFileSystem();
            CredentialStore   = new TestCredentialStore();
            HttpClientFactory = new TestHttpClientFactory();
            Git           = new TestGit();
            Environment   = new TestEnvironment(FileSystem);
            SystemPrompts = new TestSystemPrompts();

            Settings = new TestSettings {
                Environment = Environment, GitConfiguration = Git.Configuration
            };
        }