public void it_returns_correct_next_builds_with_filter() { var client = new TeamCityClient(m_server, m_useSsl); client.ConnectAsGuest(); VcsRootField vcsRootField = VcsRootField.WithFields(id: true, href: true, lastChecked: true, name: true, status: true, vcsName: true, version: true); VcsRootsField vcsRootsField = VcsRootsField.WithFields(vcsRootField); var vcsRoots = client.VcsRoots.GetFields(vcsRootsField.ToString()).All(); Assert.That(vcsRoots != null); }
public void SetVcsRootField(VcsRoot vcsRoot, VcsRootField field, object value) { _caller.PutFormat(value, "/app/rest/vcs-roots/id:{0}/{1}", vcsRoot.Id, ToCamelCase(field.ToString())); }