Glossary: Android with Jetpack Compose
dependency injection
Also written: DI
Handing an object the parts it needs, such as OrderViewModel's API and DAO, through its constructor instead of letting it build them. That lets a test pass in a fake.
Glossary: Android with Jetpack Compose
Also written: DI
Handing an object the parts it needs, such as OrderViewModel's API and DAO, through its constructor instead of letting it build them. That lets a test pass in a fake.