Beispiel #1
0
 public async Task JSON_Script()
 {
     await VerifyFormScript(@"..\..\Scripts\JSON.script",
                            "en-us", () => SandwichOrder.BuildJsonForm(), FormOptions.None, new JObject(), Array.Empty <EntityRecommendation>(),
                            "hi",
                            "ham",
                            "six",
                            "nine grain",
                            "wheat",
                            "1",
                            "peppers",
                            "1",
                            "2",
                            "n",
                            "no",
                            "ok",
                            "abc",
                            "1 state st",
                            "",
                            "9/9/2016 1pm",
                            "status",
                            "y",
                            "2.5"
                            );
 }
Beispiel #2
0
        public async Task JSON_Script()
        {
            var pathScript = TestFiles.DeploymentItemPathsForCaller(TestContext, this.GetType()).Single();

            await VerifyFormScript(pathScript,
                                   "en-us", () => SandwichOrder.BuildJsonForm(), FormOptions.None, new JObject(), Array.Empty <EntityRecommendation>(),
                                   "hi",
                                   "ham",
                                   "six",
                                   "nine grain",
                                   "wheat",
                                   "1",
                                   "peppers",
                                   "1",
                                   "2",
                                   "n",
                                   "no",
                                   "ok",
                                   "abc",
                                   "1 state st",
                                   "",
                                   "9/9/2016 1pm",
                                   "status",
                                   "y",
                                   "2.5"
                                   );
        }
Beispiel #3
0
        private async Task ResumeAfterSandwichDialog(IDialogContext context, IAwaitable <SandwichOrder> result)
        {
            SandwichOrder order = await result;
            await context.PostAsync($"I will order that sandwich for you. You are now back into the root dialog");

            // Go back to the root loop
            context.Wait(this.RootLoop);
        }