Beispiel #1
0
 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 StockTransactionsController(
     IPurchaseTransactionService purchaseTransactionService,
     ISellTransactionService sellTransactionService,
     IBrokerageAccountService brokerageAccountService,
     IStockService stockService
     )
 {
     PurchaseTransactionService = purchaseTransactionService;
     SellTransactionService     = sellTransactionService;
     BrokerageAccountService    = brokerageAccountService;
     StockService      = stockService;
     ActiveUserService = new ActiveUserService();
 }
Beispiel #4
0
 public PurchaseTransactionController(IPurchaseTransactionService service)
 {
     this._service = service ?? throw new ArgumentNullException(nameof(service));
 }
Beispiel #5
0
 public PaymentService(ICustomerService customerService,
                       IPurchaseTransactionService purchaseTransactionService)
 {
     CustomerService            = customerService;
     PurchaseTransactionService = purchaseTransactionService;
 }