public void DeleteExample()
        {
            ConversationService service = new ConversationService(_userName, _password);
            service.Endpoint = _endpoint;

            var results = service.DeleteExample(_workspace, "greetings", "Update_SDK_NET");

            Assert.IsNotNull(results);
        }
Пример #2
0
        private void DeleteExample()
        {
            Console.WriteLine(string.Format("\nCalling DeleteExample({0}, {1}, {2})...", _createdWorkspaceId, _createdIntent, _createdExample));
            var result = _conversation.DeleteExample(_createdWorkspaceId, _createdIntent, _createdExample);

            if (result != null)
            {
                Console.WriteLine(string.Format("Deleted example {0}.", _createdExample));
            }
            else
            {
                Console.WriteLine("Result is null.");
            }
        }
Пример #3
0
        public void DeleteExample_Success()
        {
            Console.WriteLine(string.Format("\nCalling DeleteExample({0}, {1}, {2})...", _createdWorkspaceId, _createdIntent, _createdExample));
            var result = conversation.DeleteExample(_createdWorkspaceId, _createdIntent, _createdExample);

            Assert.IsNotNull(result);

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