public void testBuildCreateThreadQuerySqlStatement() { SecureMessageDao dao = new SecureMessageDao(_cxn); domain.sm.Thread thread = new domain.sm.Thread(); thread.MailGroup = new domain.sm.TriageGroup(); OracleQuery query = dao.buildCreateThreadQuery(thread); Assert.IsTrue(String.Equals(query.Command.CommandText, "INSERT INTO SMS.MESSAGE_THREAD (SUBJECT, TRIAGE_GROUP_ID, CREATED_DATE, MODIFIED_DATE, CATEGORY_TYPE) VALUES (:subject, :triageGroupId, :createdDate, :modifiedDate, :categoryType) RETURNING THREAD_ID INTO :outId")); }
internal domain.sm.Thread toThread(IDataReader rdr) { domain.sm.Thread thread = new domain.sm.Thread(); if (rdr.Read()) { thread = Thread.getThreadFromReader(rdr); } return thread; }