In my project, I have 3 basic modules.
As could be understood, each module represents a functional layer.
The network module takes care of all the network interactions, and similarly, the cache module takes care of the local database interactions.
The network and the cache modules are thoroughly tested, and each of them also contains the TestData Factories used for mocking the data.
I want to now test the mobile app module, and want to use the same data factories implemented in the network and the cache modules.
How could this be achieved?