public static bool VerifyNotebook(TestConnectionResult connectionResult, AgentNotebookInfo notebook) { var notebookList = AgentNotebookHelper.GetAgentNotebooks(connectionResult.ConnectionInfo).Result; foreach (AgentNotebookInfo n in notebookList) { if (NotebookObjectEquals(notebook, n)) { return(true); } } return(false); }
public static AgentNotebookInfo GetNotebook(TestConnectionResult connectionResult, string name) { var notebookList = AgentNotebookHelper.GetAgentNotebooks(connectionResult.ConnectionInfo).Result; foreach (AgentNotebookInfo n in notebookList) { if (n.Name == name) { return(n); } } return(null); }