Exemplo n.º 1
0
 public override void Handle(CommandTextAcquiredEvent message)
 {
     RunInBusyContextWithErrorFeedback(async() =>
     {
         var recognitionResult = await _intentRecognizer.InterpretIntent(message);
         _eventAggregator.Publish(new IntentRecognitionCompletionEvent(recognitionResult));
     });
 }
Exemplo n.º 2
0
        public async void ResponseIsNotEmpty()
        {
            var response = await _recognizer.InterpretIntent(new CommandTextAcquiredEvent(TurnOnTheTvCommand));

            Assert.IsNotNull(response);
        }