Example #1
0
        public override DBMessage createDBMessage()
        {
            DBMessage retVal = new Tests.DBElements.DBMessage();

            _defaultValueSetter.SetDefaultValue(retVal);

            return(retVal);
        }
Example #2
0
 /// <summary>
 ///     Merges two DBmessages
 /// </summary>
 /// <param name="other"></param>
 public void Merge(DBMessage other)
 {
     if (getMessageOrder() == other.getMessageOrder() && getMessageType() == other.getMessageType())
     {
         setGuid(other.getGuid());
         int cnt = 0;
         foreach (DBField field in Fields)
         {
             if (cnt < other.Fields.Count)
             {
                 field.Merge((DBField)other.Fields[cnt]);
             }
             cnt = cnt + 1;
         }
     }
 }
        public override DBMessage createDBMessage()
        {
            DBMessage retVal = new Tests.DBElements.DBMessage();

            _defaultValueSetter.SetDefaultValue(retVal);

            return retVal;
        }
Example #4
0
 /// <summary>
 /// Adds a new message
 /// </summary>
 /// <param name="message"></param>
 public void AddMessage(DBElements.DBMessage message)
 {
     allMessages().Add(message);
 }