Ejemplo n.º 1
0
        public void GetAllClientNamesReturnsSome()
        {
            var query = new TeamCitySharpClient(Host, UserName, Password);
            var found = query.GetAllClientNames("Clients");

            Assert.IsTrue(found.Count > 1);
            Assert.IsTrue(found.Any(x => x.Equals("Bombardier") || x.Equals("Kaneko")));
        }
Ejemplo n.º 2
0
        public void GetsDatabasesForAllClientNames()
        {
            var tc    = new TeamCitySharpClient(Host, UserName, Password);
            var rs    = new RestSharpHelper(Host, UserName, Password);
            var names = tc.GetAllClientNames();
            var bds   = new List <string>();

            names.ForEach(x => bds.Add(rs.GetDatabase(x)));
            Assert.IsTrue(bds.Count > 1);
        }