public CountriesMediator(ICountriesHttpClient countriesHttpClient, IDetailsHttpClient detailsHttpClient) { _countriesHttpClient = countriesHttpClient ?? throw new ArgumentNullException(nameof(countriesHttpClient)); _detailsHttpClient = detailsHttpClient ?? throw new ArgumentNullException(nameof(detailsHttpClient)); }
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)); }