Created
August 13, 2012 00:33
-
-
Save shanefulmer/3335789 to your computer and use it in GitHub Desktop.
Handler 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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