Beispiel #1
0
        static void Main(string[] args)
        {
            // Create new connection
            TlConnection teamLabConnection = new TlConnection("http://tl.mg.ua/", "*****@*****.**", "qhW5v3bbOIbD");
            // Authentificate (get security token which is based on credentials)
            teamLabConnection.Authentificate();

            ///////////////////////////////////////////////////////////////////
            // Test generic functionality
            // uncomment to test
            //

            //TestGeneric gen = new TestGeneric(teamLabConnection);
            //gen.GetSettings();
            //gen.GetQuota();
            //Console.Clear();

            ///////////////////////////////////////////////////////////////////
            // Test users
            // uncomment to test
            //

            TestUsers users = new TestUsers(teamLabConnection);
            // Get all poral users
            //users.GetAllUsers();
            // Find all users
            //users.SearchUsers("Сер");
            // Find user by ID
            //users.GetUserByID("00000000-0000-0000-0000-000000000ace");
            // Get myself
            //users.GetMyself();

            ///////////////////////////////////////////////////////////////////
            // Test projects
            // uncomment to test
            //

            TestProjects projects = new TestProjects(teamLabConnection);

            // Get all projects
            //projects.GetAllProjects();
            //projects.GetAllProjects(TlProjectStatus.Closed);
            // Get all current user projects
            //projects.GetAllMyProjects();

            //projects.GetTask(1034);
            //projects.GetMilestone(226);

            //projects.GetMyTasks();

            //projects.GetUpcomingMilestones();
            //projects.GetOverdueMilestones();

            //projects.GetMilesonesByMonth(9);
            //projects.GetMilestonesByDate(new DateTime(2012, 9, 30));

            //TlUserCollectionBrief users = teamLabConnection.GetProject(66).GetTeam();
            //foreach (TlUserBrief u in users)
            //    Console.WriteLine(u.ToString()); // or Console.WriteLine(u.GetDetails().ToString());

            Console.WriteLine("\nPress any kay to exit...");
            Console.ReadKey();
        }
Beispiel #2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="connection">Connection to the TeamLab</param>
 public TestUsers(TlConnection connection)
 {
     m_ConnectionTL = connection;
 }
Beispiel #3
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="connection">Connection to the TeamLab</param>
 public TestProjects(TlConnection connection)
 {
     m_ConnectionTL = connection;
 }
Beispiel #4
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="connection">Connection to the TeamLab</param>
 public TestGeneric(TlConnection connection)
 {
     m_ConnectionTL = connection;
 }