コード例 #1
0
 public UnitOfWork(PhotoAlbumContext context,
                   IPhotoRepository photoRepository,
                   IClientProfilesRepository clientProfilesRepository,
                   ILikeRepository likeRepository)
 {
     _context = context ?? throw new ArgumentNullException(nameof(context));
     ClientProfilesRepository = clientProfilesRepository ?? throw new ArgumentNullException(nameof(clientProfilesRepository));
     PhotoRepository          = photoRepository ?? throw new ArgumentNullException(nameof(photoRepository));
     LikeRepository           = likeRepository ?? throw new ArgumentNullException(nameof(likeRepository));
 }
コード例 #2
0
 public TradingConditionsService(
     IClientProfilesRepository clientProfilesRepository,
     ISettlementCurrencyService settlementCurrencyService,
     DefaultTradingConditionsSettings defaultTradingConditionsSettings,
     DefaultLegalEntitySettings defaultLegalEntitySettings)
 {
     _clientProfilesRepository         = clientProfilesRepository;
     _settlementCurrencyService        = settlementCurrencyService;
     _defaultTradingConditionsSettings = defaultTradingConditionsSettings;
     _defaultLegalEntitySettings       = defaultLegalEntitySettings;
 }
 public TradingInstrumentsService(
     IProductsRepository productsRepository,
     IClientProfilesRepository clientProfilesRepository,
     IClientProfileSettingsRepository clientProfileSettingsRepository,
     IUnderlyingsCache underlyingsCache,
     DefaultTradingInstrumentSettings defaultTradingInstrumentSettings)
 {
     _productsRepository              = productsRepository;
     _clientProfilesRepository        = clientProfilesRepository;
     _clientProfileSettingsRepository = clientProfileSettingsRepository;
     _underlyingsCache = underlyingsCache;
     _defaultTradingInstrumentSettings = defaultTradingInstrumentSettings;
 }
コード例 #4
0
 public AssetTypesService(
     IAssetTypesRepository assetTypesRepository,
     IClientProfilesRepository clientProfilesRepository,
     IClientProfileSettingsRepository clientProfileSettingsRepository,
     IAuditService auditService,
     IBrokerSettingsApi brokerSettingsApi,
     IRegulatoryTypesApi regulatoryTypesApi,
     IRegulatorySettingsApi regulatorySettingsApi,
     ICqrsEntityChangedSender entityChangedSender,
     IUnderlyingCategoriesCache underlyingCategoriesCache,
     string brokerId)
 {
     _assetTypesRepository            = assetTypesRepository;
     _clientProfilesRepository        = clientProfilesRepository;
     _clientProfileSettingsRepository = clientProfileSettingsRepository;
     _auditService              = auditService;
     _brokerSettingsApi         = brokerSettingsApi;
     _regulatoryTypesApi        = regulatoryTypesApi;
     _regulatorySettingsApi     = regulatorySettingsApi;
     _entityChangedSender       = entityChangedSender;
     _underlyingCategoriesCache = underlyingCategoriesCache;
     _brokerId = brokerId;
 }