public void CheckTestManagementHttpClient(ITestResultsHttpClient testClient) { if (testClient == null) { ExecutionContext.Debug("Passed object of TestManagementHttpClient is null "); throw new ArgumentNullException(nameof(testClient)); } }
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>(); } }
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>(); } }