Esempio n. 1
0
 /// <summary>
 /// creates a new <see cref="HubSpot"/> access
 /// </summary>
 /// <param name="contacts">contacts api to use</param>
 /// <param name="companies">companies api to use</param>
 /// <param name="associations">associations api to use</param>
 /// <param name="deals">deals api to use</param>
 /// <param name="tickets">tickets api to use</param>
 public HubSpot(IContactApi contacts, ICompanyApi companies, IAssociationApi associations, IDealsApi deals, ITicketsApi tickets, IBlogPostApi blogposts, IEngagementsApi engagements)
 {
     Contacts     = contacts;
     Companies    = companies;
     Associations = associations;
     Deals        = deals;
     Tickets      = tickets;
     BlogPosts    = blogposts;
     Engagements  = engagements;
 }
 public AccountManagementService(IAccountsRepository accountsRepository,
                                 ITradingConditionsService tradingConditionsService,
                                 ISendBalanceCommandsService sendBalanceCommandsService,
                                 AccountManagementSettings settings,
                                 IEventSender eventSender,
                                 ILog log,
                                 ISystemClock systemClock,
                                 AccountsCache cache,
                                 IAccountBalanceChangesRepository accountBalanceChangesRepository,
                                 IDealsApi dealsApi,
                                 IEodTaxFileMissingRepository taxFileMissingRepository,
                                 IAccountsApi accountsApi,
                                 IPositionsApi positionsApi,
                                 ITradingInstrumentsApi tradingInstrumentsApi,
                                 IFeatureManager featureManager,
                                 IAuditService auditService,
                                 CorrelationContextAccessor correlationContextAccessor,
                                 IBrokerSettingsCache brokerSettingsCache)
 {
     _accountsRepository         = accountsRepository;
     _tradingConditionsService   = tradingConditionsService;
     _sendBalanceCommandsService = sendBalanceCommandsService;
     _settings    = settings;
     _eventSender = eventSender;
     _log         = log;
     _systemClock = systemClock;
     _cache       = cache;
     _accountBalanceChangesRepository = accountBalanceChangesRepository;
     _dealsApi = dealsApi;
     _taxFileMissingRepository = taxFileMissingRepository;
     _accountsApi                = accountsApi;
     _positionsApi               = positionsApi;
     _tradingInstrumentsApi      = tradingInstrumentsApi;
     _featureManager             = featureManager;
     _auditService               = auditService;
     _correlationContextAccessor = correlationContextAccessor;
     _brokerSettingsCache        = brokerSettingsCache;
 }