Skip to content

Add unit tests for service resolution #346

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

Closed
jaredcnance opened this issue Jul 19, 2018 · 1 comment · Fixed by #1016
Closed

Add unit tests for service resolution #346

jaredcnance opened this issue Jul 19, 2018 · 1 comment · Fixed by #1016

Comments

@jaredcnance
Copy link
Contributor

jaredcnance commented Jul 19, 2018

We should have a test that validates each service can actually be resolved from the container (within a scope). See #339 for motivation. It would be fantastic if this could be done via reflection and not manually adding a new test every time you register a new service. I'm thinking we would define a static member that contained all the ServiceDescriptors. Then in the test we just get this member and iterate over them to make sure they can all be resolved from the container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants