Ejemplo 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);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// This will select all childs entrys of the webconnector
        /// serverMSponsorship.asmx/TSponsorshipWebConnector_FindChildren
        /// </summary>
        public void SelectAllChilds()
        {
            SponsorshipFindTDSSearchResultTable Result = TSponsorshipWebConnector.FindChildren("", "", "", "", "");

            totalChildsBeforeTest = Result.Rows.Count;
            TLogging.Log("All Childs returns: " + totalChildsBeforeTest);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Trys to select the same child that we just created
        /// serverMSponsorship.asmx/TSponsorshipWebConnector_FindChildren
        /// </summary>
        public void SelectCreatedChild()
        {
            SponsorshipFindTDSSearchResultTable Result = TSponsorshipWebConnector.FindChildren(
                new_child_firstname,
                new_child_lastname,
                "",
                "",
                ""
                );

            // we expect one result only
            Assert.AreEqual(Result.Rows.Count, 1);

            SponsorshipFindTDSSearchResultRow Row = Result[0];

            APartnerKey = Row.PartnerKey;

            TLogging.Log("Found new Child with id: " + APartnerKey);
        }