public void CreateExample()
        {
            #region CreateExample

            CreateExample request = new CreateExample()
            {
                Text = "Test_SDK_NET"
            };

            #endregion

            ConversationService service = new ConversationService(_userName, _password);
            service.Endpoint = _endpoint;

            var results = service.CreateExample(_workspace, "greetings", request);

            Assert.IsNotNull(results);
        }
Exemplo n.º 2
0
        private void CreateExample()
        {
            Console.WriteLine(string.Format("\nCalling CreateExample({0}, {1}, {2})...", _createdWorkspaceId, _createdIntent, _createdExample));

            CreateExample example = new CreateExample()
            {
                Text = _createdExample
            };

            var result = _conversation.CreateExample(_createdWorkspaceId, _createdIntent, example);

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