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

NullReferenceException when using InjectionFactory to register type #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

developmentalmadness
Copy link

When using InjectionFactory to register a type the FromType property for the RegisterEventArgs will be null. This causes a NullReferenceException to be thrown. I've added a test to demonstrate the issue. If I can figure out the problem and get all tests to pass I'll submit a pull request for that as well. But I just thought you'd like to have the test anyway.

@developmentalmadness
Copy link
Author

Also included in the fix for the NullReferenceException is a fix for the broken psake script - looks like NUnit was updated at some point and with the new version the console-runner is in a separate nuget package. So I added the package and fixed the script to point to the current runner. You may have to get a clean version of the repo to duplicate the issue since it's probably due to the older version of NUnit still sitting in your packages folder.

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

Successfully merging this pull request may close these issues.

1 participant