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; }
// 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; }
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; }
// 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; }
public GitSourceControl(string url, IEnvironmentVariable environmentVariable) : base(url) { SetupGit(environmentVariable); }
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; }
public AppDataFolder(ILogger logger, IEnvironmentVariable environmentVariable, IAppOptionsProvider appOptionsProvider) { this.logger = logger; this.environmentVariable = environmentVariable; this.appOptionsProvider = appOptionsProvider; }
public AppDataFolder(ILogger logger, IEnvironmentVariable environmentVariable) { this.logger = logger; this.environmentVariable = environmentVariable; }
public MercurialSourceControl(IShellRunner shellRunner, IEnvironmentVariable environmentVariable) { this.shellRunner = shellRunner; hgDirectory = environmentVariable.GetDirectoryFor("hg.exe"); }
public GitSourceControlDouble(string url, IEnvironmentVariable environmentVariable) : base(url, environmentVariable) { }
public RakeBuildTool(IEnvironmentVariable environmentVariable) { this.environmentVariable = environmentVariable; }
public GitSourceControl(IEnvironmentVariable environmentVariable) { SetupGit(environmentVariable); }
public SymPath(IEnvironmentVariable environmentVariable, ILogger logger) { _environmentVariable = environmentVariable; _logger = logger; }