public PointOfSaleTerminal( IProductRepository productRepository, IDiscountRepository discountRepository, IPointOfSellNotificator notificator, IDiscountCardService discountCardService) { _productRepository = productRepository; _discountRepository = discountRepository; _notificator = notificator; _subscription = _notificator.SubscribeCheckClosed(discountCardService.HandleCheckClosed); }
public DiscountCardsController(IDiscountCardService service) { DiscountCardService = service; }