Esempio n. 1
0
 public BlazorSupervisor(IAlbumRepository albumRepository,
                         IArtistRepository artistRepository,
                         ICustomerRepository customerRepository,
                         IEmployeeRepository employeeRepository,
                         IGenreRepository genreRepository,
                         IInvoiceLineRepository invoiceLineRepository,
                         IInvoiceRepository invoiceRepository,
                         IMediaTypeRepository mediaTypeRepository,
                         IPlaylistRepository playlistRepository,
                         ITrackRepository trackRepository,
                         IMemoryCache memoryCache,
                         IWeatherForecastRepository weatherForecastRepository,
                         IVendaRepository vendaRepository
                         )
 {
     _albumRepository       = albumRepository;
     _artistRepository      = artistRepository;
     _customerRepository    = customerRepository;
     _employeeRepository    = employeeRepository;
     _genreRepository       = genreRepository;
     _invoiceLineRepository = invoiceLineRepository;
     _invoiceRepository     = invoiceRepository;
     _mediaTypeRepository   = mediaTypeRepository;
     _playlistRepository    = playlistRepository;
     _trackRepository       = trackRepository;
     _cache = memoryCache;
     _weatherForecastRepository = weatherForecastRepository;
     _vendaRepository           = vendaRepository;
 }
Esempio n. 2
0
 public WeatherForecastController(ILogger <WeatherForecastController> logger,
                                  IWeatherForecastRepository weatherForecastRepository)
 {
     _logger = logger;
     _weatherForecastRepository = weatherForecastRepository;
     _logger.LogDebug("create new instance of controller {controller}", nameof(WeatherForecastController));
 }
Esempio n. 3
0
        static Functions()
        {
            var ctx = new WeatherForecastContext();

            _repo       = new WeatherForecastRepository(ctx);
            _weatherSvc = new AccuweatherWeatherSerivce(CloudConfigurationManager.GetSetting("AccuweatherWeatherService:ApiKey"));
        }
Esempio n. 4
0
 public WeatherForecastController(ILogger <WeatherForecastController> logger, ILocationRepository locationRepo,
                                  IWeatherForecastRepository weatherForecastRepository)
 {
     _weatherForecastRepository = weatherForecastRepository;
     _logger       = logger;
     _locationRepo = locationRepo;
 }
Esempio n. 5
0
 public PostWeatherForecastCommandHandler(
     IMediatorHandler bus,
     IValidator <PostWeatherForecastCommand> validator,
     IWeatherForecastRepository weatherForecastRepository)
     : base(bus, validator)
 {
     _weatherForecastRepository = weatherForecastRepository;
 }
Esempio n. 6
0
 public WeatherForecastController(IWeatherForecastRepository weatherForecastRepository,
                                  ICacheService cacheService,
                                  ILogger <WeatherForecastController> logger)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _weatherForecastRepository = weatherForecastRepository ?? throw new ArgumentNullException(nameof(weatherForecastRepository));
     _cacheService = cacheService ?? throw new ArgumentNullException(nameof(cacheService));
 }
 public UpdateDataForCitiesThroughEachService(ICityRepository cityRepository,
                                              IWeatherForecastRepository forecastRepository,
                                              IForecastService[] services, IIdentifier identifier)
 {
     _cityRepository     = cityRepository;
     _forecastRepository = forecastRepository;
     _services           = services;
     _identifier         = identifier;
 }
Esempio n. 8
0
 public PostWeatherForecastCommandHandler(
     IMediatorHandler bus,
     INotificationHandler <DomainNotification> notificationHandler,
     IValidator <PostWeatherForecastCommand> validator,
     IWeatherForecastRepository weatherForecastRepository)
     : base(bus, notificationHandler, validator)
 {
     _weatherForecastRepository = weatherForecastRepository;
 }
Esempio n. 9
0
 public PostWeatherForecastTest(
         ExempleContext context,
         IValidator<PostWeatherForecastCommand> validator,
         IWeatherForecastRepository weatherForecastRepository )
         : base( context ) {
     _context = context;
     _weatherForecastRepository = weatherForecastRepository;
     _validator = validator;
 }
Esempio n. 10
0
 public WeatherLogic(ILocationIQOperations locationIQ, IDarkSKYOperations darkSky,
                     IUnitOfWork unitOfWork, IMapper mapper, IWeatherForecastRepository weatherForecastRepository,
                     IDistributedCache distributedCache)
 {
     _locationIQ = locationIQ;
     _darkSky    = darkSky;
     _unitOfWork = unitOfWork;
     _mapper     = mapper;
     _weatherForecastRepository = weatherForecastRepository;
     _distributedCache          = distributedCache;
 }
Esempio n. 11
0
 public GrpcWeatherForecastService(
     ILogger <GrpcWeatherForecastService> logger,
     IWeatherForecastRepository repository,
     IMapper mapper,
     IFeatureManager featureManager)
 {
     _logger         = logger;
     _repository     = repository;
     _mapper         = mapper;
     _featureManager = featureManager;
 }
Esempio n. 12
0
 public CWBAPIService(
     ILocationRepository locationRepositorie
     , IWeatherForecastRepository weatherForecastRepository
     , IWeatherForecastDetailRepository weatherForecastDetailRepository
     , IOptions <CWBSettingConfig> config)
 {
     _LocationRepositorie             = locationRepositorie;
     _WeatherForecastRepository       = weatherForecastRepository;
     _WeatherForecastDetailRepository = weatherForecastDetailRepository;
     _Authorization = config.Value.Authorization;
     _BaseUrl       = config.Value.DomainUrl;
 }
 public WeatherForecastServices(IWeatherForecastRepository repository,
                                IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }
Esempio n. 14
0
 public WeatherForecastService(IWeatherForecastRepository repository)
 {
     this.repository = repository;
 }
Esempio n. 15
0
 public WeatherForecastService(IWeatherForecastRepository repository, IAirpressureGateway airpressure)
 {
     _repository  = repository;
     _airpressure = airpressure;
 }
Esempio n. 16
0
 public WeatherForecastQuery(IWeatherForecastRepository weatherForecastRepository)
 {
     _weatherForecastRepository = weatherForecastRepository;
 }
Esempio n. 17
0
 public WeatherService(IWeatherForecastRepository weatherRepo)
 {
     _weatherRepo = weatherRepo;
 }
 public WeatherForecastService(IWeatherForecastRepository weatherForecastRepository)
 {
     _weatherForecastRepository = weatherForecastRepository;
 }
Esempio n. 19
0
 public WeatherForecastHandler(IWeatherForecastRepository weatherForecastRepository,
                               ILogger logger)
 {
     _weatherForecastRepository = weatherForecastRepository;
     _logger = logger;
 }
Esempio n. 20
0
 public WeatherForecastContinuedHandler(IWeatherForecastRepository weatherForecastRepository)
 {
     _weatherForecastRepository = weatherForecastRepository;
 }
 public WeatherForecastController(ILogger <WeatherForecastController> logger,
                                  IWeatherForecastRepository repository)
 {
     _logger     = logger;
     _repository = repository;
 }
 public WeatherForecastPersistedHandler(IWeatherForecastRepository weatherForecastRepository)
 {
     _weatherForecastRepository = weatherForecastRepository;
 }
 public WeatherForecastDomainService(IMapper mapper, IWeatherForecastRepository repository)
 {
     _mapper     = mapper;
     _repository = repository;
 }
 public static void InitialiseTest(TestContext testContext)
 {
     _clientMock = new Mock <IWeatherForecastClient>();
     _repository = new WeatherForecastRepository(_clientMock.Object);
 }
Esempio n. 25
0
 public WeatherForecastController(IWeatherForecastRepository weatherRepository, ILogger <WeatherForecastController> logger)
 {
     _weatherRepository = weatherRepository;
     _logger            = logger;
 }
 public WeatherForecastUpdatedHandler(IWeatherForecastRepository weatherForecastRepository)
 {
     _weatherForecastRepository = weatherForecastRepository;
 }
Esempio n. 27
0
 public DBCreateController(IWeatherForecastRepository repo)
 {
     _repo = repo;
 }
Esempio n. 28
0
 public SampleDataController(IWeatherForecastRepository forecasts)
 {
     this.forecasts = forecasts;
 }
Esempio n. 29
0
 public ReportController(IReportRepository repo, IUserRepository userRepo, IWeatherForecastRepository weatherRepo)
 {
     _repo        = repo;
     _userRepo    = userRepo;
     _weatherRepo = weatherRepo;
 }
 public WeatherForecastsController(IWeatherForecastRepository repo,
                                   IWeatherService weatherSvc)
 {
     _repo       = repo;
     _weatherSvc = weatherSvc;
 }