Esempio n. 1
0
        private void WhenAMessageIsPosted()
        {
            PostedMessage = "A New Message";
            MockedDateTimeProvider.Setup(mock => mock.GetUTCTimeNow()).Returns(new DateTime(100));
            MockedRepository.Setup(mock => mock.GetUser(CurrentUser.Name)).Returns(CurrentUser);
            MockedRepository.Setup(mock => mock.UpdateUser(CurrentUser));

            MessageService.PostMessage(CurrentUser.Name, PostedMessage);
        }
Esempio n. 2
0
 private void RunPostMessageCommand(Command command)
 {
     MessageAppService.PostMessage(command.User, command.Argument);
 }