Esempio n. 1
0
        public void MessageActionPayloadAppInitsWithNoArgs()
        {
            var messageActionPayloadApp = new MessageActionsPayloadApp();

            Assert.NotNull(messageActionPayloadApp);
            Assert.IsType <MessageActionsPayloadApp>(messageActionPayloadApp);
        }
Esempio n. 2
0
        public void MessageActionPayloadAppInits()
        {
            var applicationIdentityType = "bot";
            var id          = "spiffy-qna-bot-id";
            var displayName = "Contoso Bot";

            var messageActionPayloadApp = new MessageActionsPayloadApp(applicationIdentityType, id, displayName);

            Assert.NotNull(messageActionPayloadApp);
            Assert.IsType <MessageActionsPayloadApp>(messageActionPayloadApp);
            Assert.Equal(applicationIdentityType, messageActionPayloadApp.ApplicationIdentityType);
            Assert.Equal(id, messageActionPayloadApp.Id);
            Assert.Equal(displayName, messageActionPayloadApp.DisplayName);
        }
Esempio n. 3
0
        public void MessageActionsPayloadFromInits()
        {
            var user         = new MessageActionsPayloadUser("aadUser");
            var application  = new MessageActionsPayloadApp("bot");
            var conversation = new MessageActionsPayloadConversation("channel");

            var msgActionsPayloadFrom = new MessageActionsPayloadFrom(user, application, conversation);

            Assert.NotNull(msgActionsPayloadFrom);
            Assert.IsType <MessageActionsPayloadFrom>(msgActionsPayloadFrom);
            Assert.Equal(user, msgActionsPayloadFrom.User);
            Assert.Equal(application, msgActionsPayloadFrom.Application);
            Assert.Equal(conversation, msgActionsPayloadFrom.Conversation);
        }