public void CanSaveAndThenRetrieveANewUsersMessage()
        {
            var userName = "******";
            var message  = "Ground control to Major Tom";

            subject.Save(new UserMessage(userName, message));

            var messages = subject.GetMessages(userName);


            Assert.AreEqual(message, messages[0].Text);
        }
Example #2
0
        public List <Message> GetUserMessages(string name)
        {
            var results = repository.GetMessages(name);


            return(results);
        }