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

Method injection on Fixture Sentences #776

Open
jeremydmiller opened this issue May 27, 2019 · 0 comments
Open

Method injection on Fixture Sentences #776

jeremydmiller opened this issue May 27, 2019 · 0 comments

Comments

@jeremydmiller
Copy link
Member

jeremydmiller commented May 27, 2019

For Fixture Sentence methods, what if you could just use some method injection like so:

public void DoSomething([Service] ISomething something)
{

}

The "something" argument would not be a Cell, but be passed in as an argument with the value being pulled in from the IServiceProvider

Likewise, we could do the same for state:

public void DoSomething([State] ISomething something)
{

}

and maybe reporting?

public void DoSomething([Report] ReportOfSomeKind something)
{

}

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

No branches or pull requests

1 participant