public WeatherService(IWeatherRepo weatherRepo, IModel channel, RabbitMQConfig rabbitMQConfig) { _weatherRepo = weatherRepo; _channel = channel; _rabbitMQConfig = rabbitMQConfig; }
public WeatherController(IWeatherRepo repository) { _repository = repository; }
public DataAccessMain() { _weatherRepo = new WeatherRepo(); }
public WeatherDataTests() { _repo = new WeatherRepo(); }
public WeatherService() { _repo = new WeatherRepo(); }
public WeatherService(IWeatherRepo repo) { // Dependency Injection _repo = repo; }
public WeatherController(IWeatherRepo weatherRepo, IMapper mapper, ILogger <WeatherController> logger) { Logger = logger ?? throw new ArgumentNullException(nameof(logger)); Mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); WeatherRepo = weatherRepo ?? throw new ArgumentNullException(nameof(weatherRepo)); }
public WeatherService(IWeatherMapClient weatherMapClient, IWeatherRepo weatherRepo) { _weatherMapClient = weatherMapClient; _weatherRepo = weatherRepo; }
public WeatherForecastController(ILogger <WeatherForecastController> logger, IWeatherRepo repo) { _logger = logger; _repo = repo; }
public WeatherDataTests() { _dataAccesService = new DataAccessMain(); _weatherRepo = new WeatherRepo(); }
public WeatherService(IWeatherRepo repo, IMapper mapper) { _repo = repo; _mapper = mapper; }