public SearchController(ICountriesService countriesService, IStatesService statesService, ICitiesService citiesService, IZipCodesService zipCodesService)
 {
     CountriesService = countriesService;
     StatesService = statesService;
     CitiesService = citiesService;
     ZipCodesService = zipCodesService;
 }
Exemplo n.º 2
0
 public ZipCodesController(IZipCodesService zipCodesService, IWeatherService weatherService)
 {
     _zipCodesService = zipCodesService;
     _weatherService = weatherService;
 }
Exemplo n.º 3
0
 public void Init()
 {
     _zipCodesService = Substitute.For<IZipCodesService>();
     _weatherService = Substitute.For<IWeatherService>();
     _controller = new ZipCodesController(_zipCodesService, _weatherService);
 }