/// <summary> /// Initializes a new instance of the <see cref="AzureDevopsEnvironment"/> class. /// </summary> /// <param name="accessor">The accessor for environment variables.</param> public AzureDevopsEnvironment(IEnvironmentVariableAccessor accessor) : base(accessor) { CanonicalBranchName = Variables.GetVariable("BUILD_SOURCEBRANCH"); if (CanonicalBranchName != null) { BranchName = _trim.Replace(CanonicalBranchName, string.Empty); } }
/// <summary> /// Initializes a new instance of the <see cref="DefaultVersionEnvironment"/> class. /// </summary> /// <param name="accessor">The accessor for environment variables.</param> public DefaultVersionEnvironment(IEnvironmentVariableAccessor accessor) : base(accessor) { }
public StubVersionEnvironment(IEnvironmentVariableAccessor accessor) : base(accessor) { }
/// <summary> /// Initializes a new instance of the <see cref="BaseVersionEnvironment"/> class. /// </summary> /// <param name="accessor">The accessor for environment variables.</param> public BaseVersionEnvironment(IEnvironmentVariableAccessor accessor) { Variables = accessor ?? throw new ArgumentNullException(nameof(accessor)); }
public AzureDevopsEnvironmentFixture() { _env = Substitute.For <IEnvironmentVariableAccessor>(); }
public DefaultVersionEnvironmentFixture() { _env = Substitute.For <IEnvironmentVariableAccessor>(); }