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); }
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); }
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); }
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(); }
private void buttonTeams_Click(object sender, EventArgs e) { TeamClient tc = new TeamClient(); textBoxResult.Text = string.Join(Environment.NewLine, tc.GetTeamNames()); }
public static Task <TeamInfoResponse> GetTeamInfoAsync(TeamClient teamClient) => teamClient.InfoAsync();
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(); })); }