public void ListPresenter_triggers_the_output_port_supplying_a_callback() { var fakePort = new FakeActionRequest("IRRELEVANT", "IRRELEVANT"); ListPresenter cmd = new ListPresenter(fakePort); cmd.Execute(); Assert.That(fakePort.observedPort, Is.Not.Null); }
public void ListPresenter_displays_results_on_console() { ListPresenter cmd = new ListPresenter( new FakeActionRequest("IRRELEVANT", "FAKE OUTPUT")); cmd.Execute(); Assert.That(_consoleOut.ToString(), Is.StringContaining("FAKE OUTPUT")); }
public void ListPresenter_displays_use_case_heading() { ListPresenter cmd = new ListPresenter( new FakeActionRequest("THIS IS THE HEADING", "IRRELEVANT")); cmd.Execute(); Assert.That(_consoleOut.ToString(), Is.StringContaining("THIS IS THE HEADING")); }
public void ListOwners() { ListPresenter presenter = new ListPresenter(AppEnv.ListOwners); presenter.Execute(); }
public void ListPuppies() { ListPresenter presenter = new ListPresenter(AppEnv.ListPuppies); presenter.Execute(); }