public void createMessage()
        {
            string Message = "Here is my message";
            string user    = "******";

            tweetyMessage tm = new tweetyMessage();

            tm.messageText = Message;
            tm.user        = user;

            if (tm.messageText != Message)
            {
                Assert.Fail("The input does not match the output for the message");
            }
            else
            {
                Trace.WriteLine("pass message set and retrieval");
            }

            if (tm.user != user)
            {
                Assert.Fail("The input does not match the output for the user");
            }
            else
            {
                Trace.WriteLine("pass user set and retrieval");
            }

            Trace.WriteLine(string.Format("message date and time: {0}:{1}", tm.messageDateTime.ToLongDateString(), tm.messageDateTime.ToLongTimeString()));
        }
        public void WriteMessageToDb()
        {
            createalogofMessages();

            tweetyMessage      tm = new tweetyMessage("Lance", "This is a test message");
            TweetMessageWriter wt = new TweetMessageWriter(tm);

            try
            {
                wt.writeMessage();
                Trace.WriteLine("Passed Write Message");
            }
            catch (Exception e)
            {
                Assert.Fail(e.Message);
            }
        }