Skip to content

Cory Foy

Organizational agility through intersecting business and technology

Menu
  • FASTER Fridays
  • Mapping Mondays
  • Player Embed
  • Search Videos
  • User Dashboard
  • User Videos
  • Video Category
  • Video Form
  • Video Tag
Menu

New (or old) Mocking Syntax?

Posted on October 5, 2008 by Cory Foy

Is it possible to do the following, or do I have to use a Mocking framework? And if I do use a mocking framework, do I have to do anything special?


private IClassificationService fakeClassificationService = delegate {
System.Net.ICredentials Credentials
{
get { return null; }
set {}
}

IList ListAllProjects()
{
return null;
}
}

Edit: Looks like the new Rhino Mocks comes close to what I’m looking for

© 2025 Cory Foy | Powered by Superbs Personal Blog theme