예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #5
0
        public void GetData()
        {
            Recordset rs = ADOContext.MyExecute("select 1");

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