コード例 #1
0
        //[TestMethod]
        public void TestBulk_Classify()
        {
            service.WithHeader("X-Watson-Test", "1");
            List <BulkClassifyUtterance> bulkClassifyUtterances = new List <BulkClassifyUtterance>();
            BulkClassifyUtterance        bulkClassifyUtterance  = new BulkClassifyUtterance();

            bulkClassifyUtterance.Text = "help I need help";
            bulkClassifyUtterances.Add(bulkClassifyUtterance);
            var bulkClassifyResponse = service.BulkClassify(workspaceId, bulkClassifyUtterances);

            Assert.IsNotNull(bulkClassifyResponse);
        }
コード例 #2
0
        //[TestMethod]
        public void TestBulk_Classify()
        {
            service.WithHeader("X-Watson-Test", "1");
            List <BulkClassifyUtterance> bulkClassifyUtterances = new List <BulkClassifyUtterance>();
            BulkClassifyUtterance        bulkClassifyUtterance  = new BulkClassifyUtterance();

            bulkClassifyUtterance.Text = "text text";
            bulkClassifyUtterances.Add(bulkClassifyUtterance);
            var bulkClassifyResponse = service.BulkClassify("{skillId}", bulkClassifyUtterances);

            Assert.IsNotNull(bulkClassifyResponse);
        }