public async Task ExecuteMutationAddCommentToChatTxn()
        {
            MutationAddCommentToChatTxn_Output output =
                await MGTMutationExecute.ExecuteMutationAddCommentToChatTxn(clientMGT : clientMGT, _url : url, _token : token);

            Assert.That(output, Is.Not.Null);
            Assert.That(output.ResultConfirmation.resultPassed, Is.True);
            Assert.That(output.comment, Is.Not.Null);
            Assert.That(output.comment.commentId, Is.GreaterThan(0));
        }
        public static async Task <MutationAddCommentToChatTxn_Output> ExecuteMutationAddCommentToChatTxn(IMGTClient clientMGT, string _url, string _token)
        {
            MutationAddCommentToChatTxn_Input input = new MutationAddCommentToChatTxn_Input
            {
                comment = new comment
                {
                    chatId    = 3,
                    message   = "Hello There",
                    userAppId = "10d3ed1e-ae7d-4d0c-80e0-aa360d76025b"
                },
                url   = _url,
                token = _token
            };

            MutationAddCommentToChatTxn_Output output =
                await clientMGT.MutationAddCommentToChatTxn(input : input);

            return(output);
        }
Exemplo n.º 3
0
        public async Task TestMutationAddCommentToChatTxn()
        {
            MutationAddCommentToChatTxn_Input input = new MutationAddCommentToChatTxn_Input
            {
                comment = new comment
                {
                    chatId    = 3,
                    message   = "Hello There",
                    userAppId = "10d3ed1e-ae7d-4d0c-80e0-aa360d76025b"
                },
                url   = "http://10.18.24.67:8082/",
                token = "token"
            };

            MutationAddCommentToChatTxn_Output output = await new MutationAddCommentToChatTxn().Execute(input: input);

            Assert.That(output, Is.Not.Null);
            Assert.That(output.ResultConfirmation.resultPassed, Is.True);
            Assert.That(output.comment, Is.Not.Null);
            Assert.That(output.comment.commentId, Is.GreaterThan(0));
        }
Exemplo n.º 4
0
        public static async Task <MutationAddCommentToChatTxn_Output> TestMutationAddCommentToChatTxn()
        {
            IMGTExchangeClient clientMGT = new MGTExchangeClient();
            string             _url      = "http://10.18.24.67:8082/";
            string             _token    = "token";

            MutationAddCommentToChatTxn_Input input = new MutationAddCommentToChatTxn_Input
            {
                comment = new comment
                {
                    chatId    = 3,
                    message   = "Hello There",
                    userAppId = "10d3ed1e-ae7d-4d0c-80e0-aa360d76025b"
                },
                url   = _url,
                token = _token
            };

            MutationAddCommentToChatTxn_Output output =
                await clientMGT.MutationAddCommentToChatTxn(input : input);

            return(output);
        }
Exemplo n.º 5
0
        public async Task <MutationAddCommentToChatTxn_Output> MutationAddCommentToChatTxn(MutationAddCommentToChatTxn_Input input)
        {
            MutationAddCommentToChatTxn_Output output = await new MutationAddCommentToChatTxn().Execute(input: input);

            return(output);
        }