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); }
private void RunPostMessageCommand(Command command) { MessageAppService.PostMessage(command.User, command.Argument); }