public void GetMessageCount_Pass()
        {
            //Arrange
            bool expected = true;
            bool actual   = false;
            IList <GeneralMessage> messages = new List <GeneralMessage>();

            //Act
            try
            {
                for (int i = 0; i < _numMessages; i++) // Creating 3 general messages to send to database
                {
                    messages.Add(new GeneralMessage(receiverID, i + 2, GetDateTime.GetUTCNow(), "Test message" + i));
                    RoomAid.QueueConsumer.QueueConsumer.SendToDB((IMessage)messages[i]);
                }
                if (_messageDAO.GetCount(receiverID, true) == _numMessages)
                {
                    actual = true;
                }
            }
            catch (Exception e)
            {
                Trace.WriteLine(e.ToString());
            }

            //Assert
            Assert.AreEqual(expected, actual);
        }
 /// <summary>
 /// Retrieves the number of unew (nread) messages in an inbox
 /// </summary>
 /// <param name="receiverID"></param>
 /// <param name="isGeneral"></param>
 /// <returns></returns>
 public int GetNewCount(MessageDAO dao, int receiverID, bool isGeneral)
 {
     try
     {
         return(dao.GetCount(receiverID, isGeneral));
     }
     catch (Exception e)
     {
         throw e;
     }
 }