private Task <ExecutionResult> ConnectToWorkspaceAsync(IAzureClient azureClient, string workspaceName = "TEST_WORKSPACE_NAME") { return(azureClient.ConnectAsync( new MockChannel(), "TEST_SUBSCRIPTION_ID", "TEST_RESOURCE_GROUP_NAME", workspaceName, "TEST_CONNECTION_STRING")); }
private Task <ExecutionResult> ConnectToWorkspaceAsync( IAzureClient azureClient, string workspaceName = "TEST_WORKSPACE_NAME", string locationName = "") { MockAzureWorkspace.MockJobIds = new string[] { }; MockAzureWorkspace.MockTargetIds = new string[] { }; return(azureClient.ConnectAsync( new MockChannel(), "TEST_SUBSCRIPTION_ID", "TEST_RESOURCE_GROUP_NAME", workspaceName, "TEST_CONNECTION_STRING", locationName)); }
private Task <ExecutionResult> ConnectToWorkspaceAsync( IAzureClient azureClient, string workspaceName = "TEST_WORKSPACE_NAME", string locationName = "TEST_LOCATION") { // Reset the global set of jobs and providers everytime we connect to a new workspace: MockAzureWorkspace.MockJobIds = new string[] { }; MockAzureWorkspace.MockProviders = new HashSet <string>(); return(azureClient.ConnectAsync( new MockChannel(), "TEST_SUBSCRIPTION_ID", "TEST_RESOURCE_GROUP_NAME", workspaceName, "TEST_CONNECTION_STRING", locationName, CredentialType.Environment)); }