Skip to content

Instantly share code, notes, and snippets.

@shanefulmer
Created August 13, 2012 00:33
Show Gist options
  • Save shanefulmer/3335789 to your computer and use it in GitHub Desktop.
Save shanefulmer/3335789 to your computer and use it in GitHub Desktop.
Handler 2
public interface ISomeService { string DoSomething(); }
public class SomeService : ISomeService { public string DoSomething() { return string.Empty; } }
public class Foo
{
private readonly ISomeService _someService;
public Foo(ISomeService someService) { _someService = someService; }
public string Render()
{
return "this is a foo" + _someService.DoSomething();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment