Esempio n. 1
0
        internal Message(IEnvironmentVariable environmentVariable, IDate date, int morningTime, int middayTime, int eveningTime)
        {
            _environmentVariable = environmentVariable;
            _date = date;

            this.morningTime = morningTime;
            this.middayTime  = middayTime;
            this.eveningTime = eveningTime;
        }
Esempio n. 2
0
 // To enable unit testing
 internal SkipInEnvironmentAttribute(
     IEnvironmentVariable environmentVariable,
     string variableName,
     params string[] values)
 {
     _variableName        = variableName ?? throw new ArgumentNullException(nameof(variableName));
     _values              = values ?? throw new ArgumentNullException(nameof(values));
     _environmentVariable = environmentVariable ?? throw new ArgumentNullException(nameof(environmentVariable));
 }
 public LoginMiddleware(ILoginRepository loginRepository,
                        IEnvironmentVariable environmentVariable,
                        IError error,
                        ISharedResources sharedResources)
 {
     this.loginRepository     = loginRepository;
     this.environmentVariable = environmentVariable;
     this.error           = error;
     this.sharedResources = sharedResources;
 }
Esempio n. 4
0
        protected virtual void SetupGit(IEnvironmentVariable environmentVariable)
        {
            string gitDir = environmentVariable.GetDirectoryFor("git.cmd");

            if (string.IsNullOrEmpty(gitDir))
            {
                throw new EnvironmentVariableNotFoundException("No environment variable found for the git.cmd file.");
            }

            Settings.GitDir             = gitDir;
            Settings.GitBinDir          = Path.Combine(new DirectoryInfo(gitDir).Parent.FullName, "bin");
            Settings.UseFastChecks      = false;
            Settings.ShowGitCommandLine = false;
        }
Esempio n. 5
0
        // To enable unit testing
        internal EnvironmentVariableSkipConditionAttribute(
            IEnvironmentVariable environmentVariable,
            string variableName,
            params string[] values)
        {
            if (environmentVariable == null)
            {
                throw new ArgumentNullException(nameof(environmentVariable));
            }
            if (variableName == null)
            {
                throw new ArgumentNullException(nameof(variableName));
            }
            if (values == null)
            {
                throw new ArgumentNullException(nameof(values));
            }

            _variableName        = variableName;
            _values              = values;
            _environmentVariable = environmentVariable;
        }
Esempio n. 6
0
 public GitSourceControl(string url, IEnvironmentVariable environmentVariable)
     : base(url)
 {
     SetupGit(environmentVariable);
 }
Esempio n. 7
0
        protected virtual void SetupGit(IEnvironmentVariable environmentVariable)
        {
            string gitDir = environmentVariable.GetDirectoryFor("git.cmd");

            if (string.IsNullOrEmpty(gitDir))
                throw new EnvironmentVariableNotFoundException("No environment variable found for the git.cmd file.");

            Settings.GitDir = gitDir;
            Settings.GitBinDir = Path.Combine(new DirectoryInfo(gitDir).Parent.FullName, "bin");
            Settings.UseFastChecks = false;
            Settings.ShowGitCommandLine = false;
        }
Esempio n. 8
0
 public GitSourceControl(string url, IEnvironmentVariable environmentVariable) : base(url)
 {
     SetupGit(environmentVariable);
 }
Esempio n. 9
0
 public AppDataFolder(ILogger logger, IEnvironmentVariable environmentVariable, IAppOptionsProvider appOptionsProvider)
 {
     this.logger = logger;
     this.environmentVariable = environmentVariable;
     this.appOptionsProvider  = appOptionsProvider;
 }
Esempio n. 10
0
 public AppDataFolder(ILogger logger, IEnvironmentVariable environmentVariable)
 {
     this.logger = logger;
     this.environmentVariable = environmentVariable;
 }
Esempio n. 11
0
 public MercurialSourceControl(IShellRunner shellRunner, IEnvironmentVariable environmentVariable)
 {
     this.shellRunner = shellRunner;
     hgDirectory = environmentVariable.GetDirectoryFor("hg.exe");
 }
Esempio n. 12
0
 public GitSourceControlDouble(string url, IEnvironmentVariable environmentVariable)
     : base(url, environmentVariable)
 {
 }
Esempio n. 13
0
 public RakeBuildTool(IEnvironmentVariable environmentVariable)
 {
     this.environmentVariable = environmentVariable;
 }
Esempio n. 14
0
 public GitSourceControl(IEnvironmentVariable environmentVariable)
 {
     SetupGit(environmentVariable);
 }
Esempio n. 15
0
 public GitSourceControl(IEnvironmentVariable environmentVariable)
 {
     SetupGit(environmentVariable);
 }
 public SymPath(IEnvironmentVariable environmentVariable, ILogger logger)
 {
     _environmentVariable = environmentVariable;
     _logger = logger;
 }
Esempio n. 17
0
 public MercurialSourceControl(IShellRunner shellRunner, IEnvironmentVariable environmentVariable)
 {
     this.shellRunner = shellRunner;
     hgDirectory      = environmentVariable.GetDirectoryFor("hg.exe");
 }
Esempio n. 18
0
 public RakeBuildTool(IEnvironmentVariable environmentVariable)
 {
     this.environmentVariable = environmentVariable;
 }
Esempio n. 19
0
 public GitSourceControlDouble(string url, IEnvironmentVariable environmentVariable) : base(url, environmentVariable)
 {
 }