Comments (3)
Are you still having a problem with this?
The correct method call is:
var summaryService = kernel.Get<SummaryService>()
from ninject.mockingkernel.
I'm struggling here as well. Am I right that the only benefit of Ninject.MockingKernel for NSubstitute is that it will automatically generate mocks if I do not bind to something specific?
from ninject.mockingkernel.
@Roemer what api are you using and what issue are you hitting?
Am I right that the only benefit of Ninject.MockingKernel for NSubstitute is that it will automatically generate mocks if I do not bind to something specific?
Yes, it's an auto mocking container. You ask it to resolve the dependencies for a class you want to test, and it will inject substitutes / mocks for you.
My test framework wraps the Ninject mocking kernel and makes it easier to write tests. Have a look at the TestsFor
base class and tests for example usage.
from ninject.mockingkernel.
Related Issues (20)
- Release new stable build to Nuget
- problem with automocking named interfaces HOT 2
- NSubstitute is on a current version of 1.8.1 HOT 1
- Cannot find kernel Get<T> method HOT 1
- Incorrect version dependency for Ninject.MockingKernel.Moq NuGet package HOT 4
- Could Not Load Type 'Ninject.MockingKernel.AdditionalInterfaceParameter' HOT 3
- Test passes with StandardKernel, but Fails With MockingKernel HOT 1
- "Simple" example? HOT 4
- GetMock() method is missing from RhinoMocksMockingKernel HOT 1
- GetMock() - Object instance was not created by Moq. HOT 4
- Setup a mocked injected object HOT 4
- MockingKernel and Received throws an NotASubstituteException HOT 1
- Is able mocking a concrete class? HOT 2
- When will there be a new version that supports latest FakeItEasy (v3.1.0)? HOT 1
- How to create StrictMock? HOT 1
- NSubstituteMockingKernel + .NET 4.5
- Unable to bind generic list
- Problem FakeItEasy Ninject WebServer HOT 1
- MoqKernel.GetMock<T> throws ArgumentException when T is Func<...> HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ninject.mockingkernel.