예제 #1
0
        public void Excluir()
        {
            ItemContaPersistence cp = new ItemContaPersistence();
            ItemConta            c  = cp.ObterPorId(1);
            int x = cp.Excluir(c);

            Assert.IsTrue(x > 0);
        }
예제 #2
0
        public void Alterar()
        {
            ItemContaPersistence cp = new ItemContaPersistence();
            ItemConta            c  = cp.ObterPorId(2);

            c.Descricao = "Água";

            int x = cp.Atualizar(c);

            Assert.IsTrue(x > 0);
        }
예제 #3
0
        public void Incluir()
        {
            ItemContaPersistence cp = new ItemContaPersistence();
            ItemConta            c  = new ItemConta();

            c.Descricao     = "Salário";
            c.TipoItemConta = "R";
            c.IdGrupo       = 2;

            int x = cp.Inserir(c);

            Assert.IsTrue(x > 0);
        }