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

Assert an interface resolves to a concrete implementation #3

Closed
kevinkuszyk opened this issue Sep 12, 2014 · 1 comment
Closed

Assert an interface resolves to a concrete implementation #3

kevinkuszyk opened this issue Sep 12, 2014 · 1 comment

Comments

@kevinkuszyk
Copy link
Member

The syntax would look like this:

kernel.Should().Resolve<IMyInterface>().To<MyClass>()

As suggested by Will Marcouiller on Stack Overflow.

@kevinkuszyk kevinkuszyk changed the title Asset an interface resolves to a concrete implementation Assert an interface resolves to a concrete implementation Dec 4, 2014
kevinkuszyk added a commit that referenced this issue Dec 5, 2014
@kevinkuszyk
Copy link
Member Author

This is included in version 1.1.0 which I just pushed to NuGet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant