/// <summary> /// Constructs example of <see cref="RateService"/> /// </summary> /// <param name="rateClient">Http adapter for getting rates sources</param> /// <exception cref="ArgumentNullException"/> public RateService(IRateClient rateClient) { if (rateClient == null) throw new ArgumentNullException("rateClient"); _rateClient = rateClient; }
public ExchangeService(IRateClient rateClient, IDataService dataService) { this.rateClient = rateClient; this.dataService = dataService; }
public RateService(IRateClient rateClient) { _rateClient = rateClient; }