예제 #1
0
 public WeatherService(IWeatherRepo weatherRepo,
                       IModel channel,
                       RabbitMQConfig rabbitMQConfig)
 {
     _weatherRepo    = weatherRepo;
     _channel        = channel;
     _rabbitMQConfig = rabbitMQConfig;
 }
 public WeatherController(IWeatherRepo repository)
 {
     _repository = repository;
 }
예제 #3
0
 public DataAccessMain()
 {
     _weatherRepo = new WeatherRepo();
 }
예제 #4
0
 public WeatherDataTests()
 {
     _repo = new WeatherRepo();
 }
 public WeatherService()
 {
     _repo = new WeatherRepo();
 }
 public WeatherService(IWeatherRepo repo)
 {
     // Dependency Injection
     _repo = repo;
 }
예제 #7
0
 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));
 }
예제 #8
0
 public WeatherService(IWeatherMapClient weatherMapClient, IWeatherRepo weatherRepo)
 {
     _weatherMapClient = weatherMapClient;
     _weatherRepo      = weatherRepo;
 }
 public WeatherForecastController(ILogger <WeatherForecastController> logger, IWeatherRepo repo)
 {
     _logger = logger;
     _repo   = repo;
 }
예제 #10
0
 public WeatherDataTests()
 {
     _dataAccesService = new DataAccessMain();
     _weatherRepo      = new WeatherRepo();
 }
예제 #11
0
 public WeatherService(IWeatherRepo repo, IMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }