-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error when injecting ScenarioContext in .NET Framework 4.8 #12
Comments
Error:
|
Tried to upgrade to the latest versions of SpecFlow and SimpleInjector. Ammended the Example project using SimpleInjector;
using SpecFlow.SimpleInjector;
namespace MyCalculator.Specs.Support
{
public static class TestDependencies
{
[ScenarioDependencies]
public static Container CreateContainerBuilder()
{
// create container with the runtime dependencies
var builder = Dependencies.CreateContainerBuilder();
builder.Options.ResolveUnregisteredConcreteTypes = true;
//TODO: add customizations, stubs required for testing
return builder;
}
}
} After this, the teardown gave this error:
And additional info:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
Create a .Net Framework test project (MSBuild)
Ammended the app.config
Created a simple test feature file and implemented the steps, then created a step implementation where I inject the scenarioContext:
Bound the container in a TestDependencies support class
The text was updated successfully, but these errors were encountered: