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