SpecFlow.Unity | SpecFlow plugin for using Unity | Dependency Injection library
kandi X-RAY | SpecFlow.Unity Summary
kandi X-RAY | SpecFlow.Unity Summary
SpecFlow plugin for using Unity as a dependency injection framework for step definitions
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SpecFlow.Unity
SpecFlow.Unity Key Features
SpecFlow.Unity Examples and Code Snippets
Community Discussions
Trending Discussions on SpecFlow.Unity
QUESTION
We're using Unity as our dependency injection framework.
I want to create an acceptance test and need an instance of DossierService.
Unfortunately I get the following exception:
...BoDi.ObjectContainerException: 'Interface cannot be resolved [...]'
ANSWER
Answered 2017-Sep-26 at 14:43We solved this problem by implementing SpecFlow RuntimePlugin. In our case it was Castle.Windsor, but principle is the same. First you define the plugin which override default SpecFlow Instance Resolver:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SpecFlow.Unity
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page