Do I put ninject in my project that contains my service layer as well?

Posted by chobo2 on Stack Overflow See other posts from Stack Overflow or by chobo2
Published on 2011-01-15T00:51:38Z Indexed on 2011/01/15 0:53 UTC
Read the original article Hit count: 92

Filed under:

Hi

I have 3 project files(webui,framework that contains service layers and repos and unit tests).

Most of my unit testing will be done in the service layer as this will contain all the business logic. So I will be mocking out the repo.

In some cases I will query my a repo from my controller(say I just need all users in the database and I am not doing any business logic for it).

So I am thinking that I need to have ninject used in my framework project. Where is the best place to put it so I can use them against my repos in my service layers?

© Stack Overflow or respective owner

Related posts about ninject