public void Setup() { _messages = new TwitterMessages(); _pump = new TwitterMessagePumpStub(); _messages.MessagePump = _pump; }
public void GivenAnEmptyListOfTwitterMessagesWithoutResultAMessageshouldBeShown() { // arrange var pump = new TwitterMessagePumpStub(); var messages = new TwitterMessages { MessagePump = pump }; // Act & Assert Assert.That(() => messages.Parse(), Throws.Exception.Message.EqualTo("There was a technical problem retrieving the messages")); }