public App(IProductRepository productsRepository, IPriceReductionRepository priceReductionRepository) { _productsRepository = productsRepository; _priceReductionRepository = priceReductionRepository; }
public ProductService() { //Todo: ProductRepository must be injected to the service. _productRepository = new ProductRepository(); _priceReductionRepository = new PriceReductionRepository(); }