public OrderRepository(IProductRepository productRepository, IPaymentSeriveRepository paymentSeriveRepository, IEmailRepository emailRepository) { errors = new List <string>(); _productRepository = productRepository; _paymentSeriveRepository = paymentSeriveRepository; _emailRepository = emailRepository; }
public OrdersController() { _productDal = new ProductDAL(); _productRepository = new ProductRepository(_productDal); _paymentSeriveRepository = new PaymentSeriveRepository(); _emailRepository = new EmailRepository(); _orderRepository = new OrderRepository(_productRepository, _paymentSeriveRepository, _emailRepository); }
public void InIt() { _paymentServiceRepository = new PaymentSeriveRepository(); }