Exemple #1
0
/// USER [ custom_functions ]
/// USER [ custom_functions ] END

        public bool Item1()
        {
            #region - INPUT VARS -

            transaction.MemoryClean();

            tst_unit.LogTest("exec_pos_cancelaVendaEmpresarial Item1", ref m_Log);

            transaction.ut_abort = 0;

            string st_nsu_cancel = "";
            string dt_hoje       = "";
            string id_user       = "";

            POS_Entrada pe = new POS_Entrada();

            #endregion

/// USER [ setup_test_1 ]
/// USER [ setup_test_1 ] END

            #region - MAPPING TRANSACTION -

            call_exec_pos_cancelaVendaEmpresarial(st_nsu_cancel, dt_hoje, id_user, ref pe);

            if (transaction.setup() == false)
            {
                return(false);
            }

            try
            {
                #endregion

/// USER [ execute_1 ]
/// USER [ execute_1 ] END

                #region - OUTPUT VARS -
            }
            catch (System.Exception se)
            {
                if (se.Message != "ABORT")
                {
                    MessageBox.Show(se.ToString());
                }
            }

            if (transaction.finish() == false)
            {
                return(false);
            }

            string       st_msg = "";
            POS_Resposta pr     = new POS_Resposta();

            recv_exec_pos_cancelaVendaEmpresarial(ref st_msg, ref pr);

            transaction.sendObjections(ref my_objections);

            #endregion

/// USER [ validate_1 ]
/// USER [ validate_1 ] END

            pr.Clear();

            return(true);
        }