Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        public void GetData()
        {
            Recordset rs = ADOContext.MyExecute("select 1");

            Assert.AreEqual(1, rs.GetVal <int>("1"));
        }