Пример #1
0
        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);
        }
Пример #2
0
 public void SetVcsRootField(VcsRoot vcsRoot, VcsRootField field, object value)
 {
     _caller.PutFormat(value, "/app/rest/vcs-roots/id:{0}/{1}", vcsRoot.Id, ToCamelCase(field.ToString()));
 }
Пример #3
0
 public void SetVcsRootField(VcsRoot vcsRoot, VcsRootField field, object value)
 {
     _caller.PutFormat(value, "/app/rest/vcs-roots/id:{0}/{1}", vcsRoot.Id, ToCamelCase(field.ToString()));
 }