Esempio n. 1
0
        internal TfsClient(ITfsClientExecutor executor)
        {
            Assert.NotNull(executor, "executor");

            Executor = executor;

            Project  = new ProjectClient(Executor);
            Git      = new GitClient(Executor);
            Team     = new TeamClient(Executor);
            TeamRoom = new TeamRoomClient(Executor);
        }
Esempio n. 2
0
        public void SetUp()
        {
            fixture = SparkTestFixture.Instance;
            Assert.IsNotNull(fixture);

            //spark = fixture.spark;
            spark = fixture.CreateSpark();
            Assert.IsNotNull(spark);

            teams = spark.Teams;
            Assert.IsNotNull(teams);

            myTeamInfo = CreateTeam(teamName);
            Validate(myTeamInfo);
        }
Esempio n. 3
0
        public void SetUp()
        {
            fixture = WebexTestFixture.Instance;
            Assert.IsNotNull(fixture);

            //webex = fixture.webex;
            webex = fixture.CreateWebex();
            Assert.IsNotNull(webex);

            teams = webex.Teams;
            Assert.IsNotNull(teams);

            myTeamInfo = CreateTeam(teamName);
            Validate(myTeamInfo);
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            TeamClient tc = new TeamClient();

            Console.WriteLine("Want to see a list of teams in F1?");

            var anwser = Console.ReadLine();
            if (anwser != null && anwser.ToUpper() == "Y")
                foreach (var team in tc.GetTeamNames())
                {
                    Console.WriteLine(team);
                }
          
            Thread.Sleep(4000);
            Console.ReadKey();
        }
Esempio n. 5
0
 private void buttonTeams_Click(object sender, EventArgs e)
 {
     TeamClient tc = new TeamClient();
     
         textBoxResult.Text = string.Join(Environment.NewLine, tc.GetTeamNames());
 }
Esempio n. 6
0
 public static Task <TeamInfoResponse> GetTeamInfoAsync(TeamClient teamClient)
 => teamClient.InfoAsync();
Esempio n. 7
0
 private Task <Task> LoadAllTeams()
 {
     return(Task.Factory.StartNew(async() => {
         Teams = (await TeamClient.GetTeamsAsync(Project.Id.ToString())).Select(t => new TFSTeam(Project, t, PreloadDepth, TFSCollection)).ToList();
     }));
 }