Skip to content

Instantly share code, notes, and snippets.

@coreyhaines
Created January 29, 2009 21:01
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 coreyhaines/54742 to your computer and use it in GitHub Desktop.
Save coreyhaines/54742 to your computer and use it in GitHub Desktop.
public static class ThingTestingUtilities {
public static Thing NewThing(this TestsThings tester) {
return new MyThing;
}
public static Thing WithDueDate(this MyThing thing, DateTime duedate) {
thing.DueDate = duedate;
return thing;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment