buildUpdateLastEmailNotificationQuery() private method

private buildUpdateLastEmailNotificationQuery ( domain user ) : OracleQuery
user domain
return OracleQuery
示例#1
0
        public void testUpdateLastNotificationSqlStatement()
        {
            UserDao     dao   = new UserDao(_cxn);
            OracleQuery query = dao.buildUpdateLastEmailNotificationQuery(
                new domain.sm.User()
            {
                Email             = "[email protected]",
                EmailNotification = domain.sm.enums.EmailNotificationEnum.EACH_MESSAGE,
                Id = 1,
                LastNotification = DateTime.Now
            });

            Assert.IsTrue(String.Equals(query.Command.CommandText, "UPDATE SMS.SMS_USER SET LAST_EMAIL_NOTIFICATION=:lastEmailNotification, OPLOCK=:oplockPlusOne WHERE USER_ID=:userId and OPLOCK=:oplock"));
        }
示例#2
0
 public void testUpdateLastNotificationSqlStatement()
 {
     UserDao dao = new UserDao(_cxn);
     OracleQuery query = dao.buildUpdateLastEmailNotificationQuery(
         new domain.sm.User()
         {
             Email = "[email protected]",
             EmailNotification = domain.sm.enums.EmailNotificationEnum.EACH_MESSAGE,
             Id = 1,
             LastNotification = DateTime.Now
         });
     Assert.IsTrue(String.Equals(query.Command.CommandText, "UPDATE SMS.SMS_USER SET LAST_EMAIL_NOTIFICATION=:lastEmailNotification, OPLOCK=:oplockPlusOne WHERE USER_ID=:userId and OPLOCK=:oplock"));
 }