Created
April 19, 2011 06:51
-
-
Save AlexZeitler/926928 to your computer and use it in GitHub Desktop.
Passing params into BehaviorConfigs by With<T> in Machine.Fakes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How about having | |
Establish context = () => With<CurrentTime>().UsingParams(new DateTime(2011,2,14)); | |
instead of | |
Establish context = () => With(new CurrentTime(new DateTime(2011, 2, 14))); | |
I think it would enable a more consistent manner of reading when using more than one behavior config. | |
Might be nitpicking, though ;-) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which Params? How Much? Which Times?
and i use.
With(new CurrentTime(2011, 2, 14))