Exemple #1
0
        private User CreateNewUserWithMessage(string userName, string message)
        {
            User currentUser = new User(userName);

            currentUser.Messages.Add(new Message()
            {
                Contents = message, PostTime = DateTimeProvider.GetUTCTimeNow()
            });
            MessageAppRepository.AddUser(currentUser);
            return(currentUser);
        }
Exemple #2
0
 private void WhenTheUserIsAdded()
 {
     MessageAppRepository.AddUser(CurrentUser);
 }