buildDeleteFolderQuery() private method

private buildDeleteFolderQuery ( Int32 folderId ) : OracleQuery
folderId System.Int32
return OracleQuery
        public void testDeleteFolderSql()
        {
            FolderDao dao = new FolderDao(new MdoOracleConnection(new DataSource() { ConnectionString = "MyCxnString" }));
            OracleQuery result = dao.buildDeleteFolderQuery(1);

            Assert.IsNotNull(result);
            Assert.AreEqual("DELETE FROM SMS.FOLDER WHERE FOLDER_ID=:folderId", result.Command.CommandText);
        }
Beispiel #2
0
        public void testDeleteFolderSql()
        {
            FolderDao dao = new FolderDao(new MdoOracleConnection(new DataSource()
            {
                ConnectionString = "MyCxnString"
            }));
            OracleQuery result = dao.buildDeleteFolderQuery(1);

            Assert.IsNotNull(result);
            Assert.AreEqual("DELETE FROM SMS.FOLDER WHERE FOLDER_ID=:folderId", result.Command.CommandText);
        }