/// <summary>
 /// Initializes the test suite
 /// </summary>
 /// <param name="config">Configure data</param>
 /// <param name="context">Context</param>
 /// <param name="testSuiteName">TestSuite name</param>
 /// <param name="testAssemblyName">Assembley name</param>
 public static void Initialize(
     IConfigurationData config,
     IProtocolTestContext context,
     string testSuiteName,
     string testAssemblyName)
 {
     TestSiteProvider.Initialize(config, context, testSuiteName, testAssemblyName);
 }
 public void Initialize(
     IConfigurationData config,
     string configPath,
     string testSuiteName,
     string testAssemblyName)
 {
     TestSiteProvider.Initialize(config, configPath, testSuiteName, testAssemblyName);
 }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="testSuiteName">The test suite name which is used to get test site.</param>
        public PtfOptionParser(string testSuiteName)
        {
            if (string.IsNullOrEmpty(testSuiteName))
            {
                throw new InvalidOperationException("The test suite name cannot be null or empty.");
            }
            if (string.IsNullOrEmpty(testSuiteName.Trim()))
            {
                throw new InvalidOperationException("The test suite name cannot be null or empty.");
            }
            site = TestSiteProvider.GetTestSite(testSuiteName.Trim());

            if (site == null)
            {
                throw new InvalidOperationException(
                          "The test site specified dose not exist, please check whether the name is correct.");
            }
        }
 /// <summary>
 /// Get Protocol Test notify
 /// </summary>
 /// <param name="testSuiteName">TestSuite Name</param>
 /// <returns></returns>
 public static IProtocolTestNotify GetProtocolTestNotify(string testSuiteName)
 {
     return(TestSiteProvider.GetProtocolTestNotify(testSuiteName));
 }
 /// <summary>
 /// Cleanup Test Site
 /// </summary>
 /// <param name="testSuiteName"></param>
 public static void CleanupTestSite(string testSuiteName)
 {
     TestSiteProvider.DisposeTestSite(testSuiteName);
 }
 /// <summary>
 /// TestRun cleanup
 /// </summary>
 public static void TestsRunCleanup()
 {
     TestSiteProvider.Cleanup();
 }
 /// <summary>
 /// GetTestSite
 /// </summary>
 /// <param name="testSuiteName">TestSuite Name</param>
 /// <returns>Test Site</returns>
 public static ITestSite GetTestSite(string testSuiteName)
 {
     return(TestSiteProvider.GetTestSite(testSuiteName));
 }