コード例 #1
0
        public void Setup()
        {
            _worldBankClientMock  = new Mock <IWorldBankClient>();
            _countryCodeValidator = new CountryCodeValidator();

            _countryInfoService = new CountryInfoService(_countryCodeValidator, _worldBankClientMock.Object);
        }
コード例 #2
0
 public CityManager(CitiesContext citiesContext,
                    IWeatherService weatherService,
                    ICountryInfoService countryInfoService)
 {
     _citiesContext      = citiesContext;
     _weatherService     = weatherService;
     _countryInfoService = countryInfoService;
 }
コード例 #3
0
        public CountrySearchController()
        {
            // TODO: Inject in the services

            _countryInfoService = new CountryInfoService(
                new CountryCodeValidator(),
                new WorldBankClient());
        }
コード例 #4
0
 public PaymentsenseCodingChallengeController(ICountryInfoService countryInfoService)
 {
     _countryInfoService = countryInfoService;
 }
コード例 #5
0
 public CountriesController(ICountryInfoService countryInfoService)
 {
     _countryInfoService = countryInfoService;
 }
コード例 #6
0
 public CountryInfoController()
 {
     _ICountryInfoService = new CountryInfoService();
     _IDataManipulation   = new DataManipulation();
 }