Skip to content

Instantly share code, notes, and snippets.

@AlexZeitler
Created April 19, 2011 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexZeitler/926928 to your computer and use it in GitHub Desktop.
Save AlexZeitler/926928 to your computer and use it in GitHub Desktop.
Passing params into BehaviorConfigs by With<T> in Machine.Fakes
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 ;-)
@DerAlbertCom
Copy link

Which Params? How Much? Which Times?

and i use.

With(new CurrentTime(2011, 2, 14))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment