Beispiel #1
0
 public async Task PostAsync()
 {
     // Delegate the processing of the HTTP POST to the adapter.
     // The adapter will invoke the bot.
     var bot = SkillValidation.IsSkillToken(Request.Headers["Authorization"]) ? _echoBot : _rootBot;
     await _adapter.ProcessAsync(Request, Response, bot);
 }
 public void IsSkillTokenTest(bool expected, string testCaseName, string token)
 {
     _output.WriteLine(testCaseName);
     Assert.Equal(expected, SkillValidation.IsSkillToken(token));
 }