Пример #1
0
 public AssetController(
     ILogger <AssetController> logger, BuyAssetUseCase buyUseCase, SellAssetUseCase sellUseCase)
 {
     _logger      = logger;
     _buyUseCase  = buyUseCase;
     _sellUseCase = sellUseCase;
 }
Пример #2
0
 public TinkoffImportUseCase(
     TransactionStateManager stateManager, BrokerMoneyMoveParser moneyMoveParser,
     AssetParser assetParser, TradeParser tradeParser, CouponParser couponParser, DividendParser dividendParser,
     AssetMoveParser assetMoveParser, SplitDetector splitDetector,
     AddIncomeUseCase addIncomeUseCase, AddExpenseUseCase addExpenseUseCase,
     BuyAssetUseCase buyAssetUseCase, SellAssetUseCase sellAssetUseCase) : base(addIncomeUseCase, addExpenseUseCase)
 {
     _stateManager     = stateManager;
     _moneyMoveParser  = moneyMoveParser;
     _assetParser      = assetParser;
     _tradeParser      = tradeParser;
     _couponParser     = couponParser;
     _dividendParser   = dividendParser;
     _assetMoveParser  = assetMoveParser;
     _splitDetector    = splitDetector;
     _buyAssetUseCase  = buyAssetUseCase;
     _sellAssetUseCase = sellAssetUseCase;
 }