/// <summary> /// Default constructor. /// </summary> public BookApiService() { this._isbnApiClient = new IsbnApiClient(); this._authorApiClient = new AuthorApiClient(); }
/// <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; }