Skip to content

Instantly share code, notes, and snippets.

@erikdietrich
Created February 20, 2013 19:27
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 erikdietrich/4998488 to your computer and use it in GitHub Desktop.
Save erikdietrich/4998488 to your computer and use it in GitHub Desktop.
private ISomeService Service { get; set; }
[TestMethod, Owner("ebd"), TestCategory("Proven"), TestCategory("Unit")]
public void SomeTest()
{
//I want to inject it as if it were just some service
Target = new ContractUpdater(Service);
//And set it up more intuitively
Service.Setup(serv => serv.Create(It.IsAny<Service>())).Throws(new Exception());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment