Exemplo n.º 1
0
        public void Execute_SucceedsWhenGivenAValidCommandAndNullStringParameter()
        {
            var database = new SqlDb(_testConn);
            var testCommand = StoredProcedureFactory.Create("SqlDb_ExecuteTestProcedure2",
                new SqlParameter("@p1", null));

            database.Execute(testCommand, "Execute Test Failed");

            Assert.AreEqual(0, 0);
        }
Exemplo n.º 2
0
        public void Execute_ThrowsADBExceptionWhenGivenACommandThatIsNotFound()
        {
            var database = new SqlDb(_testConn);
            var testCommand = StoredProcedureFactory.Create("asdfsd");

            database.Execute(testCommand, "Execute Test Failed");

            Assert.AreEqual(0, 0);
        }
Exemplo n.º 3
0
        public void Execute_SucceedsWhenGivenAValidCommand()
        {
            var database = new SqlDb(_testConn);
            var testCommand = StoredProcedureFactory.Create("SqlDb_ExecuteTestProcedure1");

            database.Execute(testCommand, "Execute Test Failed");

            Assert.AreEqual(0,0);
        }