public void TestCreateDataset() { var snippet = new BigQueryCreateDataset(); BigQueryDataset dataset = snippet.CreateDataset(_projectId); Assert.Equal("US", dataset.Resource.Location); dataset.Delete(); }
private void Button_CreateDataset_Click(object sender, EventArgs e) { if (TextBox_DatasetName.Text.Length > 0) { string datasetName = TextBox_DatasetName.Text; BigQueryCreateDataset c = new BigQueryCreateDataset(); c.CreateDataset(DatabaseSecrets.databaseProjectId, DatabaseSecrets.databaseLocation, datasetName); } }