Skip to content

Question on the Reqnroll Sample ReqOverflow #565

Answered by clrudolphi
andre2test asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not entirely familiar with that sample, but in looking over the source, I see in the ActionAttempt.cs file that it explicitly implements the IContainerDependentObject interface operation called SetObjectContainer. The code within ActionAttempt looks like this:

        // SpecFlow calls this method when the object is created, so you can get
        // additional dependencies without passing them through the derived ctor
        void IContainerDependentObject.SetObjectContainer(IObjectContainer container)
        {
            _errorMessageProvider = container.Resolve<ErrorMessageProvider>();
            _testLogger = container.Resolve<TestLogger>();
        }

This method is invoked by …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@andre2test
Comment options

@clrudolphi
Comment options

Answer selected by andre2test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants