예제 #1
0
        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);
        }
예제 #2
0
        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);
        }