public async Task TestDeleteNotebook() { NotebookClient client = CreateClient(); NotebookResource resource = await DisposableNotebook.CreateResource(client, this.Recording); NotebookDeleteNotebookOperation operation = await client.StartDeleteNotebookAsync(resource.Name); await operation.WaitAndAssertSuccessfulCompletion(); }
public async Task TestRenameLinkedService() { NotebookClient client = CreateClient(); NotebookResource resource = await DisposableNotebook.CreateResource(client, Recording); string newNotebookName = Recording.GenerateId("Notebook2", 16); NotebookRenameNotebookOperation renameOperation = await client.StartRenameNotebookAsync(resource.Name, new ArtifactRenameRequest() { NewName = newNotebookName }); await renameOperation.WaitForCompletionResponseAsync(); NotebookResource notebook = await client.GetNotebookAsync(newNotebookName); Assert.AreEqual(newNotebookName, notebook.Name); NotebookDeleteNotebookOperation operation = await client.StartDeleteNotebookAsync(newNotebookName); await operation.WaitForCompletionResponseAsync(); }