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 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)); }