This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Config(application = TestApp::class) | |
class AccountServiceUnitTest { | |
@Before | |
fun setup() { | |
val testComponent = DaggerTestAppComponent.builder().build() | |
testComponent.inject(this) | |
} | |
//perform tests | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Injector(const [ServicesModule, ViewModelModule]) | |
abstract class AppComponent { | |
static Future<AppComponent> create( | |
ServicesModule servicesModule, | |
ViewModelModule viewModule, | |
) async { | |
return await g.AppComponent$Injector.create(servicesModule, viewModule); | |
} |