public SaleController(ISaleService saleService, IBaseObjectService <User> userService, IBaseObjectService <SaleProduct> saleProductService, IInfoMoneyService infoMoneyService, IBaseObjectService <Partner> partnerService, IBaseObjectService <ProductInformation> productInformationService, IBaseObjectService <SupplyProduct> supplyProductService, IBaseObjectService <Supplier> supplierService, IBaseObjectService <Shop> shopService, IMoneyOperationService moneyOperationService, ShopContext db, ISaleStatisticService saleStatisticService, ISaleInfoService saleInfoService, IProductOperationService productOperationService, IBookingProductInformationService bookingProductInformationService, PostgresContext postgresContext) { _saleService = saleService; _userService = userService; _saleProductService = saleProductService; _infoMoneyService = infoMoneyService; _partnerService = partnerService; _productInformationService = productInformationService; _supplyProductService = supplyProductService; _supplierService = supplierService; _db = db; _shopService = shopService; _moneyOperationService = moneyOperationService; _saleStatisticService = saleStatisticService; _saleInfoService = saleInfoService; _productOperationService = productOperationService; _bookingProductInformationService = bookingProductInformationService; _postgresContext = postgresContext; }
public MessagesMainHandler( IMessageHandler[] messageHandlers, IMoneyOperationService moneyOperationService, IBillingPeriodService billingPeriodService, IReceiptService receiptService, IMenuProvider menuProvider, IMessenger messenger, ILogger logger) { if (messageHandlers == null) { throw new ArgumentNullException(nameof(messageHandlers)); } _moneyOperationService = moneyOperationService ?? throw new ArgumentNullException(nameof(moneyOperationService)); _billingPeriodService = billingPeriodService ?? throw new ArgumentNullException(nameof(billingPeriodService)); _receiptService = receiptService ?? throw new ArgumentNullException(nameof(receiptService)); _menuProvider = menuProvider ?? throw new ArgumentNullException(nameof(menuProvider)); _messenger = messenger ?? throw new ArgumentNullException(nameof(messenger)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _messenger.OnMessage += OnMessage; _messageHandlersMap = messageHandlers .GroupBy(x => x.MessageType) .ToDictionary(x => x.Key, x => x.ToArray()); }
public MainLogicService( IDebtsCalculator debtsCalculator, IMoneyOperationService moneyOperationService, IBillingPeriodService billingPeriodService, IReceiptService receiptService) { _debtsCalculator = debtsCalculator ?? throw new ArgumentNullException(nameof(debtsCalculator)); _moneyOperationService = moneyOperationService ?? throw new ArgumentNullException(nameof(moneyOperationService)); _billingPeriodService = billingPeriodService ?? throw new ArgumentNullException(nameof(billingPeriodService)); _receiptService = receiptService ?? throw new ArgumentNullException(nameof(receiptService)); }
public ManagerController(IBaseObjectService <Partner> partnerService, IBaseObjectService <User> userService, ISaleService saleService, IInfoMoneyService infoMoneyService, IProductService productService, IBaseObjectService <Booking> bookingService, IShopService shopService, IBaseObjectService <BookingProduct> bookingProductService, IBaseObjectService <Category> categoryService, IBaseObjectService <SupplyProduct> supplyProduct, IBaseObjectService <SaleProduct> saleProductService, IBaseObjectService <SaleInformation> saleInformationService, IBaseObjectService <ExpenseCategory> expenseCategoryService, IBaseObjectService <Expense> expenseService, IBaseObjectService <ProductInformation> productInformation, ShopContext db, IProductOperationService productOperationService, IMoneyOperationService moneyOperationService, IMoneyStatisticService moneyStatisticService, IBookingProductInformationService bookingProductInformationService, ISaleInfoService saleInfoService, PostgresContext postgresContext) { _partnerService = partnerService; _userService = userService; _saleService = saleService; _infoMoneyService = infoMoneyService; _productService = productService; _bookingService = bookingService; _shopService = shopService; _bookingProductService = bookingProductService; _categoryService = categoryService; _supplyProduct = supplyProduct; _saleProductService = saleProductService; _saleInformationService = saleInformationService; _expenseCategoryService = expenseCategoryService; _expenseService = expenseService; _productInformation = productInformation; _productOperationService = productOperationService; _db = db; _moneyOperationService = moneyOperationService; _moneyStatisticService = moneyStatisticService; _bookingProductInformationService = bookingProductInformationService; _saleInfoService = saleInfoService; _postgresContext = postgresContext; }
public SaleService(ShopContext context, IInfoMoneyService infoMoneyService, IBaseObjectService <SaleProduct> saleProductService, IProductService productService, IShopService shopService, IBaseObjectService <SaleInformation> saleInformationService, IBaseObjectService <MoneyWorker> moneyWorkerService, IMoneyOperationService moneyOperationService, IBaseObjectService <ProductInformation> productInformationService, IProductOperationService productOperationService) : base(context) { _infoMoneyService = infoMoneyService; _saleProductService = saleProductService; _productService = productService; _shopService = shopService; _saleInformationService = saleInformationService; _moneyWorkerService = moneyWorkerService; _moneyOperationService = moneyOperationService; _productOperationService = productOperationService; _productInformationService = productInformationService; }