Ejemplo n.º 1
0
        public void call_fetch_consultaCartao(ref DadosConsultaCartoes dcc, ref CNetHeader header)
        {
            m_Comm.Clear();

            DataPortable send_dp_cont_0 = new DataPortable();
            DataPortable send_dp_cont_1 = new DataPortable();

            send_dp_cont_0.MapTagContainer(COMM_IN_FETCH_CONSULTACARTAO.dcc, dcc as DataPortable);
            send_dp_cont_1.MapTagContainer(COMM_IN_FETCH_CONSULTACARTAO.header, header as DataPortable);

            m_Comm.AddEntryPortable(ref send_dp_cont_0);
            m_Comm.AddEntryPortable(ref send_dp_cont_1);
        }
Ejemplo n.º 2
0
/// USER [ custom_functions ]
/// USER [ custom_functions ] END

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

            transaction.MemoryClean();

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

            transaction.ut_abort = 0;

            DadosConsultaCartoes dcc    = new DadosConsultaCartoes();
            CNetHeader           header = new CNetHeader();

            #endregion

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

            #region - MAPPING TRANSACTION -

            call_fetch_consultaCartao(ref dcc, ref header);

            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_csv_cartao = "";

            recv_fetch_consultaCartao(ref st_csv_cartao);

            transaction.sendObjections(ref my_objections);

            #endregion

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

            return(true);
        }