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