Skip to content

Question : How to use SpecFlow.Unity to make use of ContextInjection  #5

@osmanium

Description

@osmanium

Hi everyone,

I know that ScenarioContext.Current will bring the correct ScenarioContext if I want to use sequential tests, but If I want to use parallelism, then I have to go with ContextInjection yet I'm not sure how to configure it, keep getting below exception, any suggestions?

"Microsoft.Practices.Unity.ResolutionFailedException: Resolution of the dependency failed, type = "MyCalculator.Specs.StepDefinitions.CalculatorSteps", name = "(none)".
Exception occurred while: while resolving.
Exception is: InvalidOperationException - The type ScenarioContext does not have an accessible constructor."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions