Exemple #1
0
        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();
        }
Exemple #2
0
        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();
        }