Exemplo n.º 1
0
        public void TabResponseInits(TabResponsePayload tab)
        {
            var tabResponse = new TabResponse()
            {
                Tab = tab
            };

            Assert.NotNull(tabResponse);
            Assert.IsType <TabResponse>(tabResponse);
            Assert.Equal(tab, tabResponse.Tab);
        }
Exemplo n.º 2
0
        public void TabResponsePayloadInits(string tabType, TabResponseCards value, TabSuggestedActions suggestedActions)
        {
            var resPayload = new TabResponsePayload()
            {
                Type             = tabType,
                Value            = value,
                SuggestedActions = suggestedActions
            };

            Assert.NotNull(resPayload);
            Assert.IsType <TabResponsePayload>(resPayload);
        }
        protected override Activity CreateOAuthInvokeResponseActivity(DialogContext dc, CardAction cardAction)
        {
            var responsePayload = new TabResponsePayload
            {
                Type             = "auth",
                SuggestedActions = new TabSuggestedActions
                {
                    Actions = new List <CardAction>
                    {
                        cardAction,
                    },
                },
            };

            return(CreateInvokeResponseActivity(new TabResponse {
                Tab = responsePayload
            }));
        }