コード例 #1
0
ファイル: Program.cs プロジェクト: johnrjj/TeamCitySharper
        static void Main(string[] args)
        {
            TeamCityAccount account;

            if (args.Length < 3 || args[0] == null || args[1] == null || args[2] == null)
            {
                account = new TeamCityAccount("user", "password", "teamcity:port");
            }
            else
            {
                account = new TeamCityAccount(args[0], args[1], args[2]);
            }

            var client = new TeamCityClient(account);
            var projects = client.GetProjects();
        }
コード例 #2
0
 public Test()
 {
     _teamCityClient = new TeamCityClient("username", "password", "yourServerUrl");
 }