Example #1
0
 public override void Run()
 {
     using (TeamWrapper team = new TeamWrapper(new Uri(this.GetArgument("Collection")), GetArgument("TeamProject")))
     {
         team.CreateTeam(this.GetArgument("Team"), this.GetArgument("Description"));
     }
 }
Example #2
0
 public override void Run()
 {
     using (TeamWrapper team = new TeamWrapper(new Uri(GetArgument("Collection")), GetArgument("TeamProject")))
     {
         foreach (string s in team.ListTeams())
         {
             Console.WriteLine(s);
         }
     }
 }
        public override void Run()
        {
            using (TeamWrapper team = new TeamWrapper(new Uri(this.GetArgument("Collection")), GetArgument("TeamProject")))
            {
                string message;
                team.GroupToTeam(this.GetArgument("Group"), this.GetArgument("Description"), out message);

                Console.WriteLine(message);
            }
        }
Example #4
0
 public override void Run()
 {
     using (TeamWrapper team = new TeamWrapper(new Uri(this.GetArgument("Collection")), GetArgument("TeamProject")))
     {
         string msg;
         if (!team.RemoveUser(this.GetArgument("Team"), this.GetArgument("User"), out msg))
         {
             Console.WriteLine(msg);
         }
     }
 }
 public override void Run()
 {
     using (TeamWrapper team = new TeamWrapper(new Uri(this.GetArgument("Collection")), GetArgument("TeamProject")))
     {
         string msg;
         if (!team.ClearTeamImage(this.GetArgument("Team"), out msg))
         {
             Console.WriteLine(msg);
         }
         else
         {
             Console.WriteLine("Team image cleared.");
         }
     }
 }
 public override void Run()
 {
     using (TeamWrapper team = new TeamWrapper(new Uri(this.GetArgument("Collection"))))
     {
         string msg;
         if (!team.SetProfileImage(this.GetArgument("User"), this.GetArgument("ImagePath"), out msg))
         {
             Console.WriteLine(msg);
         }
         else
         {
             Console.WriteLine("Profile image set.");
         }
     }
 }
Example #7
0
 public override void Run()
 {
     using (TeamWrapper team = new TeamWrapper(new Uri(this.GetArgument("Collection")), GetArgument("TeamProject")))
     {
         string msg;
         string defTeam = team.GetDefaultTeam(out msg);
         if (defTeam != null)
         {
             Console.WriteLine(defTeam);
         }
         else
         {
             Console.WriteLine(msg);
         }
     }
 }
Example #8
0
 public override void Run()
 {
     using (TeamWrapper team = new TeamWrapper(new Uri(this.GetArgument("Collection")), GetArgument("TeamProject")))
     {
         string        msg;
         List <string> teamMembers = team.ListTeamMembers(this.GetArgument("Team"), out msg);
         if (teamMembers == null)
         {
             Console.WriteLine(msg);
         }
         else
         {
             foreach (string s in teamMembers)
             {
                 Console.WriteLine(s);
             }
         }
     }
 }