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