Skip to content

Instantly share code, notes, and snippets.

@mjendza
Created January 22, 2017 19:55
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 mjendza/a67313a6bd7d4cf8a4406241dd6e8797 to your computer and use it in GitHub Desktop.
Save mjendza/a67313a6bd7d4cf8a4406241dd6e8797 to your computer and use it in GitHub Desktop.
[InterceptLogger(1)]
public class TaskFakeService : ITaskService
{
public int GetById(int id)
{
return 1;
}
[InterceptExceptions(2)]
public IList<int> GetAll()
{
throw new AggregateException();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment