Esempio n. 1
0
        /// <summary>
        /// Get test suite by their id
        /// </summary>
        /// <param name="tfsClient">
        /// The <see cref="TfsClient"/> used for communicating with team foundation server.
        /// </param>
        /// <param name="id">
        /// The test suite id.
        /// </param>
        /// <returns>
        /// The <see cref="ITestSuiteBase"/> that matches the suite id.
        /// </returns>
        public static ITestSuiteBase GetSuiteById(TfsClient tfsClient, int id)
        {
            if (tfsClient == null)
            {
                throw new ArgumentNullException(nameof(tfsClient));
            }

            return(tfsClient.TeamProject.TestSuites.Query("SELECT * FROM TestSuite")
                   .SingleOrDefault(s => s.Id.Equals(id)));
        }
Esempio n. 2
0
 public SuiteManager(TfsClient client)
 {
     _client = client;
 }
Esempio n. 3
0
 public TestCaseManager(TfsClient client)
 {
     _client = client;
 }
Esempio n. 4
0
 public ConfigManager(TfsClient client)
 {
     _client = client;
 }
Esempio n. 5
0
 public PlanManager(TfsClient client)
 {
     _client = client;
 }