private static void SetupClient(IVstsRestClient client, IFixture fixture) => client .Get(Arg.Any <IEnumerableRequest <GitRef> >()) .Returns(fixture.CreateMany <GitRef>());
public void QueryProjects() { var definitions = _client.Get(Project.Projects()); definitions.ShouldAllBe(_ => !string.IsNullOrEmpty(_.Name)); }
private bool HasMasterBranch(string projectId, string repositoryId) { var gitRefs = _client.Get(Requests.Repository.Refs(projectId, repositoryId)).ToList(); return(gitRefs.Any(r => r.Name == "refs/heads/master")); }
public void QueryReleaseDefinitions() { var definitions = _client.Get(Requests.ReleaseManagement.Definitions(_config.Project)); definitions.ShouldAllBe(_ => !string.IsNullOrEmpty(_.Name)); }