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); }
private void WhenTheUserIsAdded() { MessageAppRepository.AddUser(CurrentUser); }