Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. public class Service : IService
  2. {
  3.     private readonly IClient _client;
  4.  
  5.     public Service() : this(new Client())
  6.     {
  7.     }
  8.  
  9.     public Service(IClient client)
  10.     {
  11.         _client = client;
  12.     }
  13.  
  14.     //....
  15. }
  16.  
  17. public class Client : IClient
  18. {
  19.     //....
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement