public void it_returns_branches_history() { string projectId = m_goodProjectId; var tempBuild = m_client.Projects.GetBranchesByBuildProjectId(projectId, BranchLocator.WithDimensions(BranchPolicy.ALL_BRANCHES)); Assert.IsTrue(tempBuild.Count == 6); }
public Branches GetBranchesByBuildConfigurationId(string buildTypeId, BranchLocator locator = null) { var locatorString = (locator != null)?$"?locator={locator}":""; var branches = m_caller.Get <Branches>( ActionHelper.CreateFieldUrl( $"/buildTypes/id:{buildTypeId}/branches{locatorString}", m_fields)); return(branches); }
public Branches GetBranchesByBuildProjectId(string projectId, BranchLocator locator = null) { var locatorString = (locator != null)?$"?locator={locator}":""; var branches = m_caller.Get <Branches>( ActionHelper.CreateFieldUrl( $"/projects/id:{projectId}/branches{locatorString}", m_fields)); return(branches); }
public void it_returns_branches_history_with_field_Default_active_fetched() { BranchField branchField = BranchField.WithFields(name: true, defaultValue: true, active: true); BranchesField branchesField = BranchesField.WithFields(branch: branchField); string projectId = m_goodProjectId; var tempBuild = m_client.Projects.GetFields(branchesField.ToString()) .GetBranchesByBuildProjectId(projectId, BranchLocator.WithDimensions(BranchPolicy.ALL_BRANCHES)); var checkIfFieldWork = tempBuild.Branch.Single(x => x.Default); Assert.IsTrue(checkIfFieldWork.Active); }
public void it_returns_branches_history() { string buildConfigId = m_goodBuildConfigId; var tempBuild = m_client.BuildConfigs.GetBranchesByBuildConfigurationId(buildConfigId, BranchLocator.WithDimensions(BranchPolicy.ALL_BRANCHES)); Assert.IsTrue(tempBuild.Count == 6); }
public BuildLocator WithBranch(BranchLocator locator) { return(With("branch", string.Format("({0})", locator))); }
public BuildLocator Branch(BranchLocator branchLocator) { _locators.Add(new ApiLocator("branch", $"({(branchLocator as ILocator).GetLocatorQueryString()})")); return(this); }