Beispiel #1
0
 public CountriesMediator(ICountriesHttpClient countriesHttpClient, IDetailsHttpClient detailsHttpClient)
 {
     _countriesHttpClient = countriesHttpClient ?? throw new ArgumentNullException(nameof(countriesHttpClient));
     _detailsHttpClient   = detailsHttpClient ?? throw new ArgumentNullException(nameof(detailsHttpClient));
 }
Beispiel #2
0
 public CountriesManager(ICountriesHttpClient countriesHttpClient)
 {
     this._countriesHttpClient = countriesHttpClient ?? throw new ArgumentNullException(nameof(countriesHttpClient));
     this._mapper = new MapperConfiguration(cfg => cfg
                                            .AddProfile(new MappingConfig())).CreateMapper() ?? throw new ArgumentNullException(nameof(_mapper));
 }