Exemplo n.º 1
0
 public ClientRepository(PassportContext passportContext, IClientScopeRepository clientScopeRepository, IClientSecretRepository clientSecretRepository, ICryptoRepository cryptoRepository)
 {
     _passportContext        = passportContext;
     _clientScopeRepository  = clientScopeRepository;
     _clientSecretRepository = clientSecretRepository;
     _cryptoRepository       = cryptoRepository;
 }
Exemplo n.º 2
0
 public CryptoManager(ICryptoCurrencyPriceProvider cryptoPriceProvider,
                      IPerformanceResultMapper performanceResultMapper,
                      ICryptoRepository repository)
 {
     _cryptoPriceProvider     = cryptoPriceProvider;
     _performanceResultMapper = performanceResultMapper;
     _repository = repository;
 }
Exemplo n.º 3
0
 public PurchaseManager(IFiatRepository fiatRepository, ICryptoRepository cryptoRepository,
                        IPurchaseRepository purchaseRepository, IHttpAPI httpAPI)
 {
     _fiatRepository     = fiatRepository ?? throw new ArgumentNullException(nameof(fiatRepository));
     _cryptoRepository   = cryptoRepository ?? throw new ArgumentNullException(nameof(cryptoRepository));
     _purchaseRepository = purchaseRepository ?? throw new ArgumentNullException(nameof(purchaseRepository));
     _httpAPI            = httpAPI ?? throw new ArgumentNullException(nameof(httpAPI));
 }
Exemplo n.º 4
0
 public WalletController(
     IWalletRepository walletRepository,
     ICryptoRepository cryptoRepository,
     IWalletOperationsService walletOperationsService)
 {
     _walletRepository        = walletRepository;
     _cryptoRepository        = cryptoRepository;
     _walletOperationsService = walletOperationsService;
 }
Exemplo n.º 5
0
 public GetLatestCryptoCurrencyQuotesHandler(ICryptoRepository cryptoRepository,
                                             ICurrencyRepository currencyRepository, ICoinMarketCapService coinMarketCapService,
                                             IForeignExchangeRateService exchangeRateService)
 {
     _cryptoRepository     = cryptoRepository ?? throw new ArgumentNullException(nameof(cryptoRepository));
     _currencyRepository   = currencyRepository ?? throw new ArgumentNullException(nameof(currencyRepository));
     _coinMarketCapService =
         coinMarketCapService ?? throw new ArgumentNullException(nameof(coinMarketCapService));
     _exchangeRateService = exchangeRateService ?? throw new ArgumentNullException(nameof(exchangeRateService));
 }
Exemplo n.º 6
0
        public ApplicationManager(IHttpAPI httpAPI, IFiatRepository fiatRepository,
                                  ICryptoRepository cryptoRepository, IExchangeRepository exchangeRepository, IUserRepository userRepository)
        {
            _httpAPI = httpAPI ?? throw new ArgumentNullException(nameof(httpAPI));

            _fiatRepository     = fiatRepository ?? throw new ArgumentNullException(nameof(fiatRepository));
            _cryptoRepository   = cryptoRepository ?? throw new ArgumentNullException(nameof(cryptoRepository));
            _exchangeRepository = exchangeRepository ?? throw new ArgumentNullException(nameof(exchangeRepository));
            _userRepository     = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
        }
Exemplo n.º 7
0
 public QuotationService(
     IQuotationRepository quotationRepository,
     ICryptoRepository cryptoRepository,
     IQuoteRepository quoteRepository,
     IRequest <CoinMarkerCapParam> request,
     IMapper mapper
     )
 {
     CryptoRepository = cryptoRepository;
     QuoteRepository  = quoteRepository;
     Request          = request;
     Mapper           = mapper;
 }
Exemplo n.º 8
0
 public MessageParserServices(IWeatherRepository weatherRepository,
                              IExchangeRateRepository exchangeRateRepository,
                              ITelegramRepository telegramRepository,
                              IChatBotRepository chatBotRepository,
                              IReviewRepository reviewRepository,
                              ICryptoRepository cryptoRepository)
 {
     _weatherRepository      = weatherRepository;
     _exchangeRateRepository = exchangeRateRepository;
     _telegramRepository     = telegramRepository;
     _chatBotRepository      = chatBotRepository;
     _reviewRepository       = reviewRepository;
     _cryptoRepository       = cryptoRepository;
 }
Exemplo n.º 9
0
 private static void CreateRepositories()
 {
     TestDataRepository = new TestDataRepository(DataContextFactory);
     CryptoRepository   = new CryptoRepository(DataContextFactory);
 }
Exemplo n.º 10
0
 public CryptoCurrencyListQueryHandler(ICryptoRepository cryptoRepository)
 {
     _cryptoRepository = cryptoRepository ?? throw new ArgumentNullException(nameof(cryptoRepository));
 }
Exemplo n.º 11
0
 public CryptoService(ICryptoRepository cryptoRepository)
 {
     _cryptoRepository = cryptoRepository ?? throw new ArgumentNullException(nameof(cryptoRepository));
 }
Exemplo n.º 12
0
 public FillDataFromServerHandler(ICryptoRepository cryptoRepository, ICoinMarketCapService coinMarketCapService)
 {
     _cryptoRepository     = cryptoRepository;
     _coinMarketCapService = coinMarketCapService;
 }
Exemplo n.º 13
0
 public ClientSecretRepository(ICryptoRepository cryptoRepository, PassportContext passportContext)
 {
     _cryptoRepository = cryptoRepository;
     _passportContext  = passportContext;
 }
Exemplo n.º 14
0
 public CoinsController(DataContext context, ICryptoRepository repo, CoinList coinlist)
 {
     _repo = repo;
 }
Exemplo n.º 15
0
 public EncryptionService(ICryptoRepository cryptoRepository)
 {
     _cryptoRepository = cryptoRepository;
 }
Exemplo n.º 16
0
 public CryptoCurrencyPriceProvider(ICryptoRepository repository,
                                    ICryptoProviderProxy cryptoProxy)
 {
     _repository  = repository;
     _cryptoProxy = cryptoProxy;
 }
Exemplo n.º 17
0
 public UsersController(ICryptoRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }
Exemplo n.º 18
0
 public CryptoService(ICryptoRepository cryptoRepository)
 {
     _cryptoRepository = cryptoRepository;
 }
Exemplo n.º 19
0
 public PortfolioRepository(IUnitOfWork unitOfWork, IMapper mapper, IStocksRepository stocksRepository, ICryptoRepository cryptoRepository)
 {
     _stocksRepository = stocksRepository ?? throw new ArgumentNullException(nameof(stocksRepository));
     _cryptoRepository = cryptoRepository ?? throw new ArgumentNullException(nameof(cryptoRepository));
 }
Exemplo n.º 20
0
 public PortfolioController(ICryptoRepository repo, DataContext context, IMapper mapper)
 {
     _repo    = repo;
     _mapper  = mapper;
     _context = context;
 }
 public CoinMarketCapApiService(ICryptoRepository cryptoRepository, IConfiguration configuration)
 {
     _cryptoRepository = cryptoRepository;
     _configuration    = configuration;
 }
Exemplo n.º 22
0
 public AesCryptoService(ICryptoRepository cryptoRepository)
 {
     this.cryptoRepository = cryptoRepository;
 }