/// USER [ custom_functions ] /// USER [ custom_functions ] END public bool Item1() { #region - INPUT VARS - transaction.MemoryClean(); tst_unit.LogTest("fetch_cadastros Item1", ref m_Log); transaction.ut_abort = 0; CNetHeader header = new CNetHeader(); #endregion /// USER [ setup_test_1 ] string tmp_id = ""; T_Futebol fut = new T_Futebol(my_transaction); fut.setup(true, ref tmp_id, "logotipo", "gr?mio"); fut.setup(false, ref tmp_id, "logotipo", "inter"); fut.setup(false, ref tmp_id, "logotipo", "caxias"); fut.setup(false, ref tmp_id, "logotipo", "juventude"); T_Profissoes pro = new T_Profissoes(my_transaction); pro.setup(true, ref tmp_id, "101", "analista de sistemas"); pro.setup(false, ref tmp_id, "102", "programador"); pro.setup(false, ref tmp_id, "103", "testador"); pro.setup(false, ref tmp_id, "104", "projetista"); T_ComoSoube cms = new T_ComoSoube(my_transaction); cms.setup(true, ref tmp_id, "revista"); cms.setup(false, ref tmp_id, "jornal"); cms.setup(false, ref tmp_id, "TV"); cms.setup(false, ref tmp_id, "internet"); /// USER [ setup_test_1 ] END #region - MAPPING TRANSACTION - call_fetch_cadastros(ref header); if (transaction.setup() == false) { return(false); } try { #endregion /// USER [ execute_1 ] if (!my_transaction.execute()) { return(false); } /// 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_futebol = ""; string st_csv_profissoes = ""; string st_csv_comoSoube = ""; string st_csv_futebol_id = ""; string st_csv_profissoes_id = ""; string st_csv_comoSoube_id = ""; recv_fetch_cadastros(ref st_csv_futebol, ref st_csv_profissoes, ref st_csv_comoSoube, ref st_csv_futebol_id, ref st_csv_profissoes_id, ref st_csv_comoSoube_id); transaction.sendObjections(ref my_objections); #endregion /// USER [ validate_1 ] /// USER [ validate_1 ] END return(true); }