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

Quickstart guide add callback which sets mock setup property #926

Closed
informatorius opened this issue Sep 13, 2019 · 1 comment
Closed

Quickstart guide add callback which sets mock setup property #926

informatorius opened this issue Sep 13, 2019 · 1 comment

Comments

@informatorius
Copy link
Contributor

Should we add this example to Quickstart guide?

// access invocation arguments and set to mock setup property
mock.SetupProperty(foo=>foo.Bar);
mock.Setup(foo => foo.DoSomething(It.IsAny<string>()))
    .Callback((string s) => mock.Object.Bar=s)
    .Returns(true);
@stakx
Copy link
Contributor

stakx commented Sep 17, 2019

Hi @informatorius, everyone can edit the Wiki, so if you feel this addition is sufficiently frequent and general in nature to be of use to others, and a good fit with the current form & structure of the Quickstart page, then go ahead... no need to ask for permission. 😉

@stakx stakx closed this as completed Sep 17, 2019
@devlooped devlooped locked and limited conversation to collaborators Sep 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants