Exemple #1
0
        static void Main(string[] args)
        {
            // Create new connection
            Connection teamLabConnection = new Connection("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(ProjectStatus.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));

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

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