예제 #1
0
    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);
    }
예제 #2
0
    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"));
    }
예제 #3
0
    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"));
    }
예제 #4
0
    public void ListOwners()
    {
        ListPresenter presenter = new ListPresenter(AppEnv.ListOwners);

        presenter.Execute();
    }
예제 #5
0
    public void ListPuppies()
    {
        ListPresenter presenter = new ListPresenter(AppEnv.ListPuppies);

        presenter.Execute();
    }