Beispiel #1
0
 public BankServiceIntegrationAgent(IOptions <BankServiceIntegrationAgentOptions> options,
                                    IOnTransactionFound onTransactionFound, ICache cache)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     _investecSDK = new InvestecSDK(new InvestecConfiguration(
                                        options.Value.ClientId, options.Value.ClientSecret, options.Value.AccountNumber));
     _onTransactionFound = onTransactionFound;
     _cache = cache;
 }
Beispiel #2
0
 public GetTransactionsTests()
 {
     _investecSdk = new InvestecSDK(_investecHttpClient.Object);
 }