public void Setup() { _worldBankClientMock = new Mock <IWorldBankClient>(); _countryCodeValidator = new CountryCodeValidator(); _countryInfoService = new CountryInfoService(_countryCodeValidator, _worldBankClientMock.Object); }
public CityManager(CitiesContext citiesContext, IWeatherService weatherService, ICountryInfoService countryInfoService) { _citiesContext = citiesContext; _weatherService = weatherService; _countryInfoService = countryInfoService; }
public CountrySearchController() { // TODO: Inject in the services _countryInfoService = new CountryInfoService( new CountryCodeValidator(), new WorldBankClient()); }
public PaymentsenseCodingChallengeController(ICountryInfoService countryInfoService) { _countryInfoService = countryInfoService; }
public CountriesController(ICountryInfoService countryInfoService) { _countryInfoService = countryInfoService; }
public CountryInfoController() { _ICountryInfoService = new CountryInfoService(); _IDataManipulation = new DataManipulation(); }