Exemplo n.º 1
0
        /// <summary>
        /// This will select all childs entrys of the webconnector
        /// serverMSponsorship.asmx/TSponsorshipWebConnector_MaintainChild
        /// </summary>
        public void CreateNewChild()
        {
            new_child_firstname = RandomString(15, false);
            new_child_lastname  = RandomString(8, false);
            new_child_status    = "CHILDREN_HOME";

            TVerificationResultCollection VRC = new TVerificationResultCollection();

            bool success = TSponsorshipWebConnector.MaintainChild(
                new_child_status,
                new_child_firstname,
                new_child_lastname,
                new_child_birth,
                "",
                false,
                "MALE",
                "",
                APartnerKey,
                FLedgerNumber,
                out VRC
                );

            if (success)
            {
                TLogging.Log("Created new Child with following args:" + VRC.ToString());
            }
            else
            {
                TLogging.Log("Creating new Child fail, all other test not possible");
                Assert.False(true);
            }
        }