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

Use Ninject #92

Open
AlbertoMonteiro opened this issue Jan 15, 2015 · 5 comments
Open

Use Ninject #92

AlbertoMonteiro opened this issue Jan 15, 2015 · 5 comments

Comments

@AlbertoMonteiro
Copy link
Collaborator

To have decoupled and testable code we cave to use Dependency injection principle.
How about to use Ninject to inject classes dependencies.
Octokit use interfaces for almost all objects, after moving to octokit we will have better code to test.
http://blog.frederikprijck.net/2013/09/10/dependency-injection-in-a-wpf-mvvm-application-using-ninject/

@NPadrutt
Copy link
Collaborator

Doesn't mvvm light introduce a DI solution who should fit for pretty all basic stuff?

Howecer if you wanna go with ninject I'm ok with it. Just don't have any experience with it.

@AlbertoMonteiro
Copy link
Collaborator Author

@NPadrutt Yeap, it does. But Ninject is a lot better, and used in a lot other Project like asp.net mvc projects. I already use it on my projects, and ninject is really easy :P

@NPadrutt
Copy link
Collaborator

Just used it once in asp.net webapi project. But didn't set it up =)

btw, is ninject further developed? I read once that the cease development since of different changes in the language who should turn it obsolet?

@AlbertoMonteiro
Copy link
Collaborator Author

You can check here: https://github.com/ninject/ninject
But latest commit was authored 11 days ago :P
So i guess yes :D

@NPadrutt
Copy link
Collaborator

Ah, nice :)

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

2 participants