public void CheckTestManagementHttpClient(ITestResultsHttpClient testClient)
 {
     if (testClient == null)
     {
         ExecutionContext.Debug("Passed object of TestManagementHttpClient is null ");
         throw new ArgumentNullException(nameof(testClient));
     }
 }
示例#2
0
        public void InitializeServer(VssConnection connection, IExecutionContext executionContext)
        {
            ArgUtil.NotNull(connection, nameof(connection));
            _connection = connection;

            if (GetFeatureFlagState(executionContext, connection, EnablePublishToTcmServiceDirectlyFromTaskFF))
            {
                TestHttpClient = connection.GetClient <TestResultsHttpClient>();
            }
            else
            {
                TestHttpClient = connection.GetClient <TestManagementHttpClient>();
            }
        }
示例#3
0
        public void InitializeServer(VssConnection connection)
        {
            ArgUtil.NotNull(connection, nameof(connection));
            _connection = connection;
            FeatureAvailabilityHttpClient featureAvailabilityHttpClient = connection.GetClient <FeatureAvailabilityHttpClient>();

            if (GetFeatureFlagState(featureAvailabilityHttpClient, EnablePublishToTcmServiceDirectlyFromTaskFF))
            {
                TestHttpClient = connection.GetClient <TestResultsHttpClient>();
            }
            else
            {
                TestHttpClient = connection.GetClient <TestManagementHttpClient>();
            }
        }