Ejemplo n.º 1
0
        public static async Task <MutationCreateCompanyAndXUsersTxn_Output> TestMutationCreateCompanyAndXUsersTxn()
        {
            IMGTExchangeClient clientMGT = new MGTExchangeClient();
            string             _url      = "http://10.18.24.67:8082/";
            string             _token    = "token";

            MutationCreateCompanyAndXUsersTxn_Input input = new MutationCreateCompanyAndXUsersTxn_Input
            {
                company = new company
                {
                    name        = "company10",
                    description = "one",
                    email       = "*****@*****.**",
                    password    = "******"
                },
                userstocreate = 10,
                url           = _url,
                token         = _token
            };

            MutationCreateCompanyAndXUsersTxn_Output output =
                await clientMGT.MutationCreateCompanyAndXUsersTxn(input : input);

            return(output);
        }
        public async Task ExecuteMutationCreateCompanyAndXUsersTxn()
        {
            MutationCreateCompanyAndXUsersTxn_Output output =
                await MGTMutationExecute.ExecuteMutationCreateCompanyAndXUsersTxn(clientMGT : clientMGT, _url : url, _token : token);

            Assert.That(output, Is.Not.Null);
            Assert.That(output.ResultConfirmation.resultPassed, Is.True);
            Assert.That(output.company, Is.Not.Null);
            Assert.That(output.company.users.Count, Is.GreaterThan(0));
        }
        public static async Task <MutationCreateCompanyAndXUsersTxn_Output> ExecuteMutationCreateCompanyAndXUsersTxn(IMGTClient clientMGT, string _url, string _token)
        {
            MutationCreateCompanyAndXUsersTxn_Input input = new MutationCreateCompanyAndXUsersTxn_Input
            {
                company = new company
                {
                    name        = "company10",
                    description = "one",
                    email       = "*****@*****.**",
                    password    = "******"
                },
                userstocreate = 10,
                url           = _url,
                token         = _token
            };

            MutationCreateCompanyAndXUsersTxn_Output output =
                await clientMGT.MutationCreateCompanyAndXUsersTxn(input : input);

            return(output);
        }
Ejemplo n.º 4
0
        public async Task TestMutationCreateCompanyAndXUsersTxn()
        {
            MutationCreateCompanyAndXUsersTxn_Input input = new MutationCreateCompanyAndXUsersTxn_Input
            {
                company = new company
                {
                    name        = "company4",
                    description = "one",
                    email       = "*****@*****.**",
                    password    = "******"
                },
                userstocreate = 10,
                url           = "http://10.18.24.67:8082/",
                token         = "token"
            };

            MutationCreateCompanyAndXUsersTxn_Output output = await new MutationCreateCompanyAndXUsersTxn().Execute(input: input);

            Assert.That(output, Is.Not.Null);
            Assert.That(output.ResultConfirmation.resultPassed, Is.True);
            Assert.That(output.company, Is.Not.Null);
            Assert.That(output.company.users.Count, Is.GreaterThan(0));
        }
Ejemplo n.º 5
0
        // </Query>
        // <Mutation>
        public async Task <MutationCreateCompanyAndXUsersTxn_Output> MutationCreateCompanyAndXUsersTxn(MutationCreateCompanyAndXUsersTxn_Input input)
        {
            MutationCreateCompanyAndXUsersTxn_Output output = await new MutationCreateCompanyAndXUsersTxn().Execute(input: input);

            return(output);
        }