public OrderRepository(IProductRepository productRepository, IPaymentSeriveRepository paymentSeriveRepository, IEmailRepository emailRepository)
 {
     errors                   = new List <string>();
     _productRepository       = productRepository;
     _paymentSeriveRepository = paymentSeriveRepository;
     _emailRepository         = emailRepository;
 }
예제 #2
0
 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();
 }