Skip to content

Commit

Permalink
add HOW-IT-WORKS.md
Browse files Browse the repository at this point in the history
  • Loading branch information
msbaek committed Jan 9, 2016
1 parent dacca3c commit 29e9936
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions HOW-IT-WORKS.md
@@ -0,0 +1,14 @@
How it Works
==========
![](login-classes.png)

1. View(Activity, Fragment, ...) calls presenter methods whenever there're user interaction
2. Presenter implementation calls the interactor(use case handler) to get results from business/domain layer
3. Interactor implementation returns the results or just returns the control to presenter implementation by calling listener methods
4. Presenter implementation calls view methods to update the UI by calling view interface.

View, Presenter, Interactor and Listener interfaces are used to remove tight coupling.

View becomes too humble to test. We can use fake(simulator) presenter to test view.

Presenter and Interactor can be tested.
Binary file added login-classes.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 29e9936

Please sign in to comment.