Beispiel #1
0
		public async void WatsonQAIsPingSuccess ()
		{
			var wqa = new WatsonQA (new Credentials (userName: "******",
				password: "******"));

			var responseMessage = await wqa.IsPingSuccess ();

			Assert.IsTrue (responseMessage);
		}
Beispiel #2
0
		public async void WatsonQAAskSuccess ()
		{

			var wqa = new WatsonQA (new Credentials (userName: "******",
				password: "******"));

			var responseMessage = await wqa.Ask (new QAQuestion{ Question= new Question{ QuestionText="Places to see in NYC", Items=1, EvidenceRequest=  new EvidenceRequest{ Items = 1}, FormattedAnswer=true } }, QADatasetType.Travel);

			Assert.NotNull (responseMessage[0].Question.Answers.Count > 0);
		}