예제 #1
0
 public SaleService(SaleRepositoryInterface _saleRepo, SaleDetailRepositoryInterface _saleDetailRepo, ItemRepositoryInterface itemRepo, CustomerTransactionServiceInterface transactionService, CustomerRepositoryInterface customerRepo)
 {
     this._saleRepo       = _saleRepo;
     this._saleDetailRepo = _saleDetailRepo;
     _itemRepo            = itemRepo;
     _transactionService  = transactionService;
     _customerRepo        = customerRepo;
 }
예제 #2
0
 public SaleController(SaleRepositoryInterface _saleRepo,
                       IToastNotification _toastNotification,
                       CustomerRepositoryInterface customerRepo,
                       ItemRepositoryInterface _itemRepo,
                       SaleServiceInterface _saleService,
                       SaleDetailRepositoryInterface _saleDetailRepo)
 {
     this._saleRepo          = _saleRepo;
     _customerRepo           = customerRepo;
     this._itemRepo          = _itemRepo;
     this._toastNotification = _toastNotification;
     this._saleService       = _saleService;
     this._saleDetailRepo    = _saleDetailRepo;
 }