Created
February 13, 2012 19:33
-
-
Save akmad/1819387 to your computer and use it in GitHub Desktop.
Service Mocking
This file contains hidden or 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 class MyService : IMyService { | |
| public MyService() | |
| : this(new DataAccess()) { } | |
| public MyService(IDataService data) { | |
| _data = data; | |
| } | |
| private IDataService _data; | |
| ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment