コード例 #1
0
        public void DeleteIntent()
        {
            ConversationService service = new ConversationService(_userName, _password);
            service.Endpoint = _endpoint;

            var results = service.DeleteIntent(_workspace, "Test_SDK_NET");

            Assert.IsNotNull(results);
        }
コード例 #2
0
        private void DeleteIntent()
        {
            Console.WriteLine(string.Format("\nCalling DeleteIntent({0}, {1})...", _createdWorkspaceId, _createdIntent));
            var result = _conversation.DeleteIntent(_createdWorkspaceId, _createdIntent);

            if (result != null)
            {
                Console.WriteLine(string.Format("Deleted intent {0}", _createdIntent));
            }
            else
            {
                Console.WriteLine("Result is null.");
            }
        }
コード例 #3
0
        public void DeleteIntent_Success()
        {
            Console.WriteLine(string.Format("\nCalling DeleteIntent({0}, {1})...", _createdWorkspaceId, _createdIntent));
            var result = conversation.DeleteIntent(_createdWorkspaceId, _createdIntent);

            Assert.IsNotNull(result);

            if (result != null)
            {
                Console.WriteLine(string.Format("Deleted intent {0}", _createdIntent));
            }
            else
            {
                Console.WriteLine("Result is null.");
            }
        }