ninject / Ninject.MockingKernel

Extension for Ninject aiding testability in Moq, NSubstitute, and FakeItEasy
http://ninject.org/
Other
62 stars 25 forks source link

Cannot find kernel Get<T> method #23

Closed BrainCrumbz closed 9 years ago

BrainCrumbz commented 9 years ago

Hello all

I've installed Ninject.MockingKernel.NSubstitute v3.2.20 via Nuget, and all its related dependencies of course. I cannot seem to proceed on the very first basic step: getting an instance of class under test.

var kernel = new NSubstituteMockingKernel();

MyClassUnderTest component = kernel.Get<MyClassUnderTest>();

Get method is not defined. I've also checked (closed) issue #14 , without any luck. I've checked source code here on Github, in this project and in Ninject project, but I could not understand where Get is defined. Is that some extension method or what?

Thanks a lot

scott-xu commented 9 years ago

using Ninject;