Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make CollectionService testable #75

Open
digimezzo opened this issue Jul 26, 2019 · 0 comments
Open

Make CollectionService testable #75

digimezzo opened this issue Jul 26, 2019 · 0 comments

Comments

@digimezzo
Copy link
Owner

digimezzo commented Jul 26, 2019

CollectionService currently has a hidden dependency on DataStore. Because of this, DataStore cannot be mocked. How to solve?

Make DataStore injectable

My first idea is to use DataService to manage DataStore and inject DataService in CollectionService.

@digimezzo digimezzo modified the milestones: Knowte v2.0.1, Knowte v2.1.0 Aug 7, 2019
@digimezzo digimezzo removed this from the Knowte v2.1.0 milestone Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant