Skip to content
Ivan Paulovich edited this page Jan 21, 2020 · 6 revisions

The flow of control begins at the controller, moves through the use case, and then winds up executing the presenter.

Register Flow of Control

  1. An request in received by the CustomersController then the Post action is invoked.
  2. The action creates a RegisterInput message then the Register use case is called.
  3. The Register use case creates a Customer and an Account. Repositories are called, the RegisterOutput message is built and sent to the RegisterPresenter.
  4. The RegisterPresenter builds the HTTP response message.
  5. The CustomersController asks the presenter for the current response message.

Register Flow of Control

Get Customer Details Flow of Control

  1. An request in received by the CustomersController then then GetCustomer action is invoked.
  2. The GetCustomer action creates an GetCustomerDetailsInput message then GetCustomerDetails use case is called.
  3. The GetCustomerDetails use case asks the repositories about the Customer and the Account. It could call the NotFound or the Default output port of the GetCustomerDetailsPresenter depending if it exists or does not.
  4. The GetCustomerDetailsPresenter builds the HTTP response message.
  5. The CustomersController asks the presenter for the current response.
Clone this wiki locally