After this lesson you will
- Write use cases following the convention in UseCase's KDoc: one user intention
- Choose the right shape: extend UseCase, several parameters, return a Flow, several functions
- Bind use cases in SharedDomainModule and test them with hand-written fakes in commonTest
Duration25 min
DifficultyIntermediate
UseCase Pattern
UseCase Pattern in the Mobile Action Pro course.
- 01Lesson Goal
- 02Part 1: The Convention Lives In The KDoc
- 03Part 2: Four Shapes In The Repo
- 04Part 3: A Use Case That Orchestrates Several Ports
- 05Part 4: Wiring At The Composition Root
- 06Part 5: Test With Hand-Written Fakes
- 07Practice Exercise
- 08Code Reading Path
- 09Signs To Avoid
- 10References
- 11Key Points
Topics: kotlin, 06-clean-architecture
11 sections left in this lessonUnlock all of Mobile Action ProLesson Goal, Part 1: The Convention Lives In The KDoc, … — plus 114 lessons in this course, source code and checklists.
Unlock Mobile Action ProOne-time payment — lifetime access — 7-day money-back. Already purchased? Sign in