use of org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceStoreImpl in project dhis2-android-sdk by dhis2.
the class HandlerFactory method createTrackedEntityInstanceHandler.
public static TrackedEntityInstanceHandler createTrackedEntityInstanceHandler(DatabaseAdapter databaseAdapter) {
TrackedEntityInstanceStore trackedEntityInstanceStore = new TrackedEntityInstanceStoreImpl(databaseAdapter);
TrackedEntityAttributeValueHandler trackedEntityAttributeValueHandler = createTrackedEntityAttributeValueHandler(databaseAdapter);
EnrollmentHandler enrollmentHandler = createEnrollmentHandler(databaseAdapter);
TrackedEntityInstanceHandler trackedEntityInstanceHandler = new TrackedEntityInstanceHandler(trackedEntityInstanceStore, trackedEntityAttributeValueHandler, enrollmentHandler);
return trackedEntityInstanceHandler;
}
use of org.hisp.dhis.android.core.trackedentity.TrackedEntityInstanceStoreImpl in project dhis2-android-sdk by dhis2.
the class TrackerDataCallMockIntegrationShould method setUp.
@Override
@Before
public void setUp() throws IOException {
super.setUp();
dhis2MockServer = new Dhis2MockServer(new AssetsFileReader());
d2 = D2Factory.create(dhis2MockServer.getBaseEndpoint(), databaseAdapter());
trackedEntityInstanceStore = new TrackedEntityInstanceStoreImpl(databaseAdapter());
resourceStore = new ResourceStoreImpl(databaseAdapter());
enrollmentStore = new EnrollmentStoreImpl(databaseAdapter());
}
Aggregations