public void TesteSabor() { Recordset rs = ADOContext.MyExecute("SELECT id_sabor_id,ativo,valor_adicional,nome,recheio,categoria_id FROM sabores "); var myClass = new Sabores().BindClass(ref rs); Assert.IsNotNull(myClass.id_sabor_id); }
public void BindData() { Recordset rs = ADOContext.MyExecute("select 1 as number1,2 as number2,3 as number3"); var myClass = new Numbers().BindClass(ref rs); Assert.IsNotNull(myClass.number1); Assert.IsNotNull(myClass.number2); Assert.IsNotNull(myClass.number3); }
public void BindList() { Recordset rs = ADOContext.MyExecute("SELECT * FROM armazem"); var myClass = new TestClass().BindClass(ref rs); Assert.IsNotNull(myClass.idArmazem); Assert.IsNotNull(myClass.Nome); Assert.IsNotNull(myClass.Status); Assert.IsNull(myClass.CampoExtra); }
public void TesteTabela() { Recordset rs = ADOContext.MyExecute("SELECT * FROM custom_rede_credenciada c WHERE c.ST_REGISTRO = 'G' AND c.ID_EMPRESA = 1 AND c.ID_CUSTOM_REDE_CREDENCIADA_ID = 3"); rs = ADOContext.MyExecute("SELECT * FROM custom_rede_credenciada c WHERE c.ST_REGISTRO = 'G' AND c.ID_EMPRESA = 1 AND c.ID_CUSTOM_REDE_CREDENCIADA_ID = 3"); rs = ADOContext.MyExecute("SELECT * FROM custom_rede_credenciada c WHERE c.ST_REGISTRO = 'G' AND c.ID_EMPRESA = 1 AND c.ID_CUSTOM_REDE_CREDENCIADA_ID = 3"); rs = ADOContext.MyExecute("SELECT * FROM custom_rede_credenciada c WHERE c.ST_REGISTRO = 'G' AND c.ID_EMPRESA = 1 AND c.ID_CUSTOM_REDE_CREDENCIADA_ID = 3"); rs = ADOContext.MyExecute("SELECT * FROM custom_rede_credenciada c WHERE c.ST_REGISTRO = 'G' AND c.ID_EMPRESA = 1 AND c.ID_CUSTOM_REDE_CREDENCIADA_ID = 3"); rs = ADOContext.MyExecute("SELECT * FROM custom_rede_credenciada c WHERE c.ST_REGISTRO = 'G' AND c.ID_EMPRESA = 1 AND c.ID_CUSTOM_REDE_CREDENCIADA_ID = 3"); rs = ADOContext.MyExecute("SELECT * FROM custom_rede_credenciada c WHERE c.ST_REGISTRO = 'G' AND c.ID_EMPRESA = 1 AND c.ID_CUSTOM_REDE_CREDENCIADA_ID = 3"); rs = ADOContext.MyExecute("SELECT * FROM custom_rede_credenciada c WHERE c.ST_REGISTRO = 'G' AND c.ID_EMPRESA = 1 AND c.ID_CUSTOM_REDE_CREDENCIADA_ID = 3"); rs = ADOContext.MyExecute("SELECT * FROM custom_rede_credenciada c WHERE c.ST_REGISTRO = 'G' AND c.ID_EMPRESA = 1 AND c.ID_CUSTOM_REDE_CREDENCIADA_ID = 3"); rs = ADOContext.MyExecute("SELECT * FROM custom_rede_credenciada c WHERE c.ST_REGISTRO = 'G' AND c.ID_EMPRESA = 1 AND c.ID_CUSTOM_REDE_CREDENCIADA_ID = 3"); rs = ADOContext.MyExecute("SELECT * FROM custom_rede_credenciada c WHERE c.ST_REGISTRO = 'G' AND c.ID_EMPRESA = 1 AND c.ID_CUSTOM_REDE_CREDENCIADA_ID = 3"); var myClass = new ClassRedeCredenciadoLiteModel().BindClass(ref rs); Assert.IsNotNull(myClass.ClassificacaoRedeCredenciadaId); }
public void GetData() { Recordset rs = ADOContext.MyExecute("select 1"); Assert.AreEqual(1, rs.GetVal <int>("1")); }