public PaymentService(ICustomerService customerService, IPurchaseTransactionService purchaseTransactionService, ISubscriptionService subscriptionService, IBookService bookService) { CustomerService = customerService; PurchaseTransactionService = purchaseTransactionService; SubscriptionService = subscriptionService; BookService = bookService; }
public StockTransactionsController( IPurchaseTransactionService purchaseTransactionService, ISellTransactionService sellTransactionService, IBrokerageAccountService brokerageAccountService, IStockService stockService ) { PurchaseTransactionService = purchaseTransactionService; SellTransactionService = sellTransactionService; BrokerageAccountService = brokerageAccountService; StockService = stockService; ActiveUserService = new ActiveUserService(); }
public PurchaseTransactionController(IPurchaseTransactionService service) { this._service = service ?? throw new ArgumentNullException(nameof(service)); }
public PaymentService(ICustomerService customerService, IPurchaseTransactionService purchaseTransactionService) { CustomerService = customerService; PurchaseTransactionService = purchaseTransactionService; }