Esempio n. 1
0
        public static void SetUp(TestContext context)
        {
            testContext = context;
            string directLineToken = context.Properties["DirectLineToken"].ToString();
            string microsoftAppId  = context.Properties["MicrosoftAppId"].ToString();
            string fromUser        = context.Properties["FromUser"].ToString();
            string botId           = context.Properties["BotId"].ToString();

            botHelper = new BotHelper(directLineToken, microsoftAppId, fromUser, botId);

            var subscription = context.GetSubscription();

            var testCase = new BotTestCase()
            {
                Action        = $"select subscription {subscription}",
                ExpectedReply = $"Setting {subscription} as the current subscription. What would you like to do next?",
            };

            TestRunner.RunTestCase(testCase).Wait();
        }