Example #1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public BookApiService()
 {
     this._isbnApiClient   = new IsbnApiClient();
     this._authorApiClient = new AuthorApiClient();
 }
Example #2
0
 /// <summary>
 /// Constructor with dependency injection of API clients.
 /// </summary>
 /// <param name="isbnApiClient"></param>
 /// <param name="authorApiClient"></param>
 public BookApiService(IIsbnApiClient isbnApiClient, IAuthorApiClient authorApiClient)
 {
     this._isbnApiClient   = isbnApiClient;
     this._authorApiClient = authorApiClient;
 }