Skip to content

Application ShoppingApp

Devrath edited this page Jul 11, 2021 · 21 revisions
Contents
Creating a Fake repository

Creating a Fake repository

  1. We create a fake repository when we can swap between a real repository and a fake repository depending on our usage.
  2. We use a real repository when we are running our production code.
  3. We use a fake repository when we are testing our test cases.
  4. We inject the interface of the repository in the view model constructor.

Clone this wiki locally