Exemple #1
0
 public ClientRepository(PassportContext passportContext, IClientScopeRepository clientScopeRepository, IClientSecretRepository clientSecretRepository, ICryptoRepository cryptoRepository)
 {
     _passportContext        = passportContext;
     _clientScopeRepository  = clientScopeRepository;
     _clientSecretRepository = clientSecretRepository;
     _cryptoRepository       = cryptoRepository;
 }
Exemple #2
0
 public CryptoManager(ICryptoCurrencyPriceProvider cryptoPriceProvider,
                      IPerformanceResultMapper performanceResultMapper,
                      ICryptoRepository repository)
 {
     _cryptoPriceProvider     = cryptoPriceProvider;
     _performanceResultMapper = performanceResultMapper;
     _repository = repository;
 }
Exemple #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));
 }
 public WalletController(
     IWalletRepository walletRepository,
     ICryptoRepository cryptoRepository,
     IWalletOperationsService walletOperationsService)
 {
     _walletRepository        = walletRepository;
     _cryptoRepository        = cryptoRepository;
     _walletOperationsService = walletOperationsService;
 }
Exemple #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));
 }
Exemple #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));
        }
Exemple #7
0
 public QuotationService(
     IQuotationRepository quotationRepository,
     ICryptoRepository cryptoRepository,
     IQuoteRepository quoteRepository,
     IRequest <CoinMarkerCapParam> request,
     IMapper mapper
     )
 {
     CryptoRepository = cryptoRepository;
     QuoteRepository  = quoteRepository;
     Request          = request;
     Mapper           = mapper;
 }
 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;
 }
Exemple #9
0
 private static void CreateRepositories()
 {
     TestDataRepository = new TestDataRepository(DataContextFactory);
     CryptoRepository   = new CryptoRepository(DataContextFactory);
 }
Exemple #10
0
 public CryptoCurrencyListQueryHandler(ICryptoRepository cryptoRepository)
 {
     _cryptoRepository = cryptoRepository ?? throw new ArgumentNullException(nameof(cryptoRepository));
 }
Exemple #11
0
 public CryptoService(ICryptoRepository cryptoRepository)
 {
     _cryptoRepository = cryptoRepository ?? throw new ArgumentNullException(nameof(cryptoRepository));
 }
Exemple #12
0
 public FillDataFromServerHandler(ICryptoRepository cryptoRepository, ICoinMarketCapService coinMarketCapService)
 {
     _cryptoRepository     = cryptoRepository;
     _coinMarketCapService = coinMarketCapService;
 }
Exemple #13
0
 public ClientSecretRepository(ICryptoRepository cryptoRepository, PassportContext passportContext)
 {
     _cryptoRepository = cryptoRepository;
     _passportContext  = passportContext;
 }
Exemple #14
0
 public CoinsController(DataContext context, ICryptoRepository repo, CoinList coinlist)
 {
     _repo = repo;
 }
Exemple #15
0
 public EncryptionService(ICryptoRepository cryptoRepository)
 {
     _cryptoRepository = cryptoRepository;
 }
Exemple #16
0
 public CryptoCurrencyPriceProvider(ICryptoRepository repository,
                                    ICryptoProviderProxy cryptoProxy)
 {
     _repository  = repository;
     _cryptoProxy = cryptoProxy;
 }
 public UsersController(ICryptoRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }
 public CryptoService(ICryptoRepository cryptoRepository)
 {
     _cryptoRepository = cryptoRepository;
 }
Exemple #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));
 }
Exemple #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;
 }
Exemple #22
0
 public AesCryptoService(ICryptoRepository cryptoRepository)
 {
     this.cryptoRepository = cryptoRepository;
 }