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

is there any exmaple for using ScenarioFor<> with story #22

Closed
srivathsah opened this issue Mar 23, 2017 · 3 comments
Closed

is there any exmaple for using ScenarioFor<> with story #22

srivathsah opened this issue Mar 23, 2017 · 3 comments

Comments

@srivathsah
Copy link

This looks exactly like what I was planning to do, however I am not sure how to use this when it comes to user stories. In one of your issues #13 you have mentioned something like ScenarioFor<MediatorDriver, PersonStory>. Whats the semantics for TStory here

@mwhelan
Copy link
Owner

mwhelan commented Mar 23, 2017

Hi @srivathsah

Yes, check out the ATM sample. You can see that the AccountHolderWithdrawsCashStory story class is a simple class where you set the story metadata in the constructor. Then you reference that class as the second generic parameter class, such as in the AccountHasSufficientFunds scenario.

@mwhelan
Copy link
Owner

mwhelan commented Mar 23, 2017

There are 2 types of story base classes (or you could create your own). UserStory follows the As a, I want, So that template. The ValueStory uses the In order to, As a, I want template.

@srivathsah
Copy link
Author

That's great, cheers

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

2 participants