I have a factory that looks like below: public IFoo GetFoo(IFile file开发者_Go百科) { return _kernel.Get<IFoo>(new ConstructorArgument(\"file\", file));
I am using Ninject for my IoC container and I\'m trying to write some unit tests.I found the Ninject Mocking Kernel so I thought I\'d give it a go but I can\'t get the simplest test to pass. I am miss
I have a IRepository that I have implemented in Repository and I extended Repository for specific type as UsersRepository I need to bind all types using the generic binding for Ninject however when re
I am using nhibernate + fluent nhibernate asp.net mvc 3 ninject Currently I am using nhibernate, ninject with the repository pattern and service layers.
I am trying to get Ninject working with a WebForms application that already has a custom PageBase object. But, I don\'t know for sure if I can use Ninject\'s PageBase object alongside another, custom
Have a couple of questions regarding the latest version (2.2.1.4) of ninject. Was trying to Bind a Linq2sql DataContext to a concrete implementation InRequestScope (in a class library project)
So, let\'s say I have an interface IThingFactory: public interface IThingFactory { Thing GetThing(int thingId);
I\'m using Ninject 2.2, and I\'m trying to setup a binding for an open generic that takes two type arguments. According to this answer by qes, the correct syntax to bind IRepository<T> to Reposi
I am injecting repositories into a class, and once I\'ve injected the repositories, I\'m assigning my context to each of the repositories so I have my unit of work.
I am interested in creating an instance of an object that implements my IDistributor interface using IoC and Ninject.