The MockClient
class fetches its mock data from the application bundle. This works fine, but there are a few limitations. The most important limitation is the lack of flexibility. With the current setup, we can only test the happy path, that is, the application showing the user a list of episodes.
Subscribe to Cocoacasts Plus to watch this episode.
From Zero to App Store
Populating the Feed: Adding Flexibility to the Mock API Client
by Bart Jacobs in Programming
Swift 5
Xcode 11
iOS 13
From Zero to App Store
-
03:31
-
10:30
-
13:26
-
9 Adopting the Coordinator Pattern
13:15
-
18 Populating the Feed: Adding Flexibility to the Mock API Client
06:01