File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/app/src/androidTest/java/com/couchbase/learningpath Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class DatabaseIntegrationTests {
59
59
try {
60
60
// arrange database
61
61
context = ApplicationProvider .getApplicationContext()
62
- databaseManager = DatabaseManager .getInstance (context)
62
+ databaseManager = DatabaseManager (context)
63
63
64
64
// arrange test users
65
65
user1 = User (
@@ -84,15 +84,15 @@ class DatabaseIntegrationTests {
84
84
val isAuth = authenticationService.authenticatedUser(user1.username, user1.password)
85
85
86
86
// arrange repositories
87
- auditRepository = AuditRepositoryDb (context, authenticationService )
88
- stockItemRepository = StockItemRepositoryDb (context )
89
- warehouseRepository = WarehouseRepositoryDb (context )
90
- userProfileRepository = UserProfileRepository (context )
87
+ auditRepository = AuditRepositoryDb (authenticationService, databaseManager )
88
+ stockItemRepository = StockItemRepositoryDb (databaseManager )
89
+ warehouseRepository = WarehouseRepositoryDb (databaseManager )
90
+ userProfileRepository = UserProfileRepository (databaseManager )
91
91
projectRepository = ProjectRepositoryDb (
92
- context = context,
93
92
authenticationService = authenticationService,
94
93
warehouseRepository = warehouseRepository,
95
- stockItemRepository = stockItemRepository
94
+ stockItemRepository = stockItemRepository,
95
+ databaseManager = databaseManager
96
96
)
97
97
98
98
// load sample data
You can’t perform that action at this time.
0 commit comments