public VerstkaFileClientNameProvider( IKeyedProvider <string, string> stringWithoutBadSymbolsProvider, int maxLength = 0) { _stringWithoutBadSymbolsProvider = stringWithoutBadSymbolsProvider; _maxLength = maxLength; }
public AccountService(BPFinanceContext context, IOptions <AppSettings> appSettingsAccessor, IOptions <AppParams> appParamsAccessor) { _context = context; var repository = new BPFinanceRepository(_context, appParamsAccessor.Value.EditUserId); _businessUnitIds = appParamsAccessor.Value.BusinessUnitIds; var basketBusinessUnitIdProvider = new BasketBusinessUnitIdProvider(_context); _paymentInTimeDiscountProvider = new PaymentInTimeDiscountProvider(appParamsAccessor.Value.BusinessUnitSettings); _clientAccountProcessor = new ClientAccountProcessor( _context, repository); _accountSettingsProcessor = new AccountSettingsProcessor( _context, repository); _orderProcessor = new OrderProcesor( _context, repository, appParamsAccessor.Value.BasketOrderDescription, appParamsAccessor.Value.ManagerId, basketBusinessUnitIdProvider); var rubricProcessor = new RubricProcessor( _context, repository); var graphicProcessor = new GraphicProcessor( _context, repository); _orderImProcessor = new OrderImProcessor( _context, repository); var stringProcessor = new StringProcessor( _context, repository); var moduleProcessor = new ModuleProcessor( _context, repository); var moduleMaketProcessor = new ModuleMaketProcessor( appSettingsAccessor.Value.OrderImFolderTemplate, appSettingsAccessor.Value.DatabaseName); _positionImProcessor = new PositionImProcessor( _context, repository, _orderImProcessor, stringProcessor, moduleProcessor, moduleMaketProcessor); _orderPositionProcessor = new OrderPositionProcessor( _context, repository, rubricProcessor, graphicProcessor, _positionImProcessor, appParamsAccessor.Value.BasketOrderDescription); }
public OrderProcesor( BPFinanceContext context, IBPFinanceRepository repository, string basketOrderDescription, int defaultOrderManagerId, IKeyedProvider <Tuple <int, int>, int> basketBusinessUnitIdProvider) { _context = context; _repository = repository; _basketOrderDescription = basketOrderDescription; _defaultOrderManagerId = defaultOrderManagerId; _basketBusinessUnitIdProvider = basketBusinessUnitIdProvider; _basketOrderFactory = new BasketOrderFactory(_basketOrderDescription); _clientOrderFactory = new ClientOrderFactory(); }
public BasketBusinessUnitIdProvider(BPFinanceContext context) { _interactionBusinessUnitIdProvider = new InteractionBusinessUnitIdProvider(context); _businessUnitByPriceIdProvider = new BusinessUnitIdByPriceIdProvider(context); }