Exemple #1
0
 public DadJokesService(IHttpClientWrapper httpClient, IDadJokesServiceConfiguration config)
 {
     _httpClient = httpClient;
     _config     = config;
     _serviceUrl = _config.Url;
     _limit      = _config.Limit;
 }
Exemple #2
0
 public JokesController()
 {
     _serviceConfig   = ConfigurationManager.GetSection("jokes") as DadJokesServiceConfiguration;
     _dadJokesService = new DadJokesService(new HttpClientWrapper(), _serviceConfig);
 }